从数据库加载网站 [英] Loading website from database

查看:83
本文介绍了从数据库加载网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我想从sql数据库加载我网站的html页面(内容,css,js,图像)。

i搜索了很多,但找不到好的文章或解决方案。

如果有人有或可以通过指导步骤帮助我,请提供链接。



先谢谢。

Dear All,

I want to load my website's html pages(content,css,js,images) from sql database.
i searched a lot but could not find a good article or solution.
Please provide me link if anyone have or can help me out by guiding steps.

Thanks in Advance.

推荐答案

你可能找不到关于这个主题的文章,因为有人不太可能写这篇关于这个奇怪主题的文章和文章。这个想法非常值得怀疑;至少,这不是通常的网站工作的方式。即使在某个地方使用这种技术,也可以在更大的书或文章中提及它。



另外,你应该理解100%的网站无法使用此技术。您至少需要一个可以开始的页面。更重要的是,您应该了解:此类网站的基本属性是缺少有效链接:如果您使用网站上的锚点到某个页面,页面将立即生成,但如果您将链接存储到您的记录中的此类页面稍后请求,您将请求不存在的页面。替代方案可以是:您可以创建一个替代HTTP服务器或插入某个现有服务器的插件(模块),它将所有HTTP请求直接转换为生成页面和其他资源的数据库。



毕竟,这很有可能实现,甚至不是很困难 - 没有任何页面可读;所有您需要知道的是HTTP和所有内容类型,以及所有其他Web标准。唯一的问题是:为什么?坦率地说,我个人认为没有理由。



-SA
You probably cannot find an article on such topic because it's very unlikely that someone would write and article on such a weird topic. The idea is highly questionable; at least, this is not how any more or less usual sites work. Even if such technique is used somewhere, it could be mentioned just by the way, in a bigger book or article.

Also, you should understand that 100% of the site cannot physically use this technique. You need at least one page which one can start with. More importantly, you should understand: the fundamental property of such Web site would be the lack of valid links: if you got to some page using anchors on the site, the pages will be generated on the fly, but if you store the link to such page in your record and request it later, you will request a non-existing page. The alternative can be this: you can create an alternative HTTP server or a plug-in (module) plugged into some existing server which would translate all HTTP request directly to the database generating pages and other resource.

After all, this is quite possible to implement and not even very difficult — without any pages to read; all you need to know is HTTP and all content types, as well as all other Web standards. The only question is: why? I personally see no reason, frankly.

—SA


这篇关于从数据库加载网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆