Updating daily news is a headache for webmasters. After collecting a large amount of news, you must create a large number of webpages. Every day, large and small international news, domestic news, and IT news are really tiring. The most deadly point is that the loose news of these organizations cannot be managed. Cannot be queried. Cannot be deleted online. News is time-sensitive. When you prepare a webpage and upload it to the server, I'm afraid someone else has exported the news first. This is really thankless. For our current online environment, online news publishing, dynamic generation of news webpages, and addition of search and search for news are essential.
There are two methods to customize the news publishing system: one is to automatically generate HTML files for the entered News content directly by the program, such as the HTML file name by date and news ID, we can often see such processing from some large news sites. The other is to directly save the news data to the database. When the user reads the news, the data is transferred from the database to dynamically generate pages.
What is the difference between the two solutions? The first display speed is the lightest for the server load. For high-traffic websites, the speed is life, and the website is too slow. Who can browse it? The latter method is easy to process and easy to maintain. Because only the application database can easily process queries and direct the readers to the corresponding news page. Based on the above methods, we can say that each has its own merits. Now we mainly introduce how to use databases.
I. Handling process
In terms of the processing process, it mainly provides a page for managing news (you can add and delete Daily News, including news images and titles ), and then process it on the display page of the call news. Considering that news needs to be inserted into webpages of different styles, a fixed format page cannot be used to display news feeds. Therefore, you should make them into the pluggable part of a home page. The following script statement
<Script language = "JavaScript" src = "http // xxx.com.cn/special/linux/lnews/autoup.asp">
</Script>
There is also a detailed content page for reading news. In general, a program that can complete online news publishing is mainly composed of four parts: addnew. asp (used to save news data to the database), delete. asp (used to process and delete news) and autoup. asp, read. asp (dynamic generation of news details ).
Set_disp.asp (used to process the display quantity of news on the home page, etc ).
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service