At first glance, the concept of PHP appears similar to that of JavaScript and other scripting languages that can be imbedded in traditional html code. It adds new capabilities and makes more complicated operations possible within the web environment.
However, the process of removing much of the processing from individual computers has some important benefits.
- WORKLOAD
- CENTRALIZED DATA
- DYNAMIC CONTENT
- PLUG-INS
If your server is PHP-enabled, a far better solution than all of these is a PHP include. Basically, a PHP include inserted into the html of a web page tells the browser to retrieve an html file from the server and include it when it renders the web page. This means that you only need to have one file with your navigation links in it stored on your server, and every one of your web pages can be rendered including this same file.
|