Home > Article > Backend Development > Website Setup PHP Personal Website Setup Lecture 2
Three homepage news releases to make updates easier for you (Part 1)
--------Every time you add a message or two sentences to the homepage, you have to upload the entire page again, which is really not worth it! So like A lazy guy like Lan Feng thought of a once and for all solution, real dynamic real-time, remote management and editing, and automatic maintenance functions. It can also be used as a bulletin board for virtual communities. (If you change it, you can automatically generate a feed of the news in your news center on the homepage, haha.) With so many functions, please forgive me, hehe.
--------A few digressions first. When we build a website, do we use HTML interspersed with PHP, or do we use PHP to generate HTML? Professional sites can concentrate one function on one page, and call different modules through this page to realize each sub-function (does the client only have one page? I have not tried it). In any case, functional modular software reuse is an important method for efficient development (it can also save your host space^_^).
--------Okay, let’s modularize the functions together. Beginners please read the code carefully, paying special attention to the usage of basic functions. Experts can skip this section, haha (Why are you so serious? It makes people feel embarrassed 9-().
/*head.php In order to avoid others directly typing head.inc to download your For the source code, it is best to use php as the suffix, so that your server will intercept it for processing first, haha*/
echo "
The above has introduced the website setting up. The second series of lectures on PHP personal website setting up includes the content of website setting up. I hope it will be helpful to friends who are interested in PHP tutorials.