Loading
About Php Includes
Ever wondered what Php includes is? It's basically a file transfer between webpages. Say you have alot of links on your website, and you have a lot of pages. You wouldn't want to go and update each and everyone of your pages manually just to update the links right? With Php includes, you use a simple code and it can update everything on your site at once.How to use Php Includes
When you want to use php includes, you have to find out which parts of your site you want to be able to update at once. Say you want to update the top parts of your website. You will copy everything from the top of your coding right to the point where you wouldnt want to update everything at once. Now, you paste this coding into notepad and save the file as 'header.php' Go back and erase all of the coding you just copied, and replace that coding with this:
Save your webpage, and then upload the text file onto your server. Once it is uploaded, you will be able to edit the parts on your website that you want to be edited at once. The only problem is, you have to do the same technique on all of your pages to be able to update at once. (without the code, its just your typical webpage.) Now, if theres anymore parts of your website that you would want to edit and update at once, (say the bottom coding of your website) You will have to do the same routine with copying and pasting the parts you would want to update in notepad. Instead of saving the file as 'header.php' you will name this document 'footer.php' Go back and erase all of the coding you just copied on your website, and replace that coding with this:

Save your webpage, and then upload the text file onto your server. Once it is uploaded, you will be able to edit the parts on your website that you want to be edited at once.


