摘要
动态网页在服务器端以数据库为基础运行程序,而静态网页不在服务器端执行且不访问数据,因此静态网页在访问速度方面要快,使用静态页面生成技术将动态网页静态化,具有重要意义。文中详细介绍了两种静态页生成技术,基于模板方法和基于URL方法,其核心就是将需要生成的数据,转成流输出成文件,管理人员添加网页时,利用后台发布程序把页面存成相应HTML文件。这种技术已成功应用到某门户网站的新闻浏览模块中,可以减少服务器端访问数据的压力,提高网页浏览速度,提高了数据存取效率,且生成的静态页更利于被搜索引擎收录和排名靠前。
Dynamic web pages have to run program based on database at the server,while the static web pages neither run program at server nor visit the database.Therefore,static web-pages are of faster visiting speed.It is of great significance to make dynamic web-pages into static pages by applying the generative technology of static web page making.This paper specifically introduces two generative methods of static web-pages,one is based on model and the other is based on URL,and the core is to invert the data required to be generated into stream and output as files.When the webmaster adds the web-pages,he can store the pages in the form of HTML documents by issuing programs on the backstage.This technology has already been applied to a certain news-scanning model in a gateway website,which can reduce the stress of visiting data on the end of the server,enhance the scanning speed of web-pages,and increase the efficiency of data storage.Besides,the generated static pages are beneficial to embodying of search engines and moving ahead in the ranking list.
出处
《计算机技术与发展》
2010年第6期175-178,共4页
Computer Technology and Development
基金
广西自然科学基金资助项目(桂科自0991059)
广西高校人才小高地建设创新团队资助计划项目(桂教人[2007]71号)