TUTORIALS
• You do not have to leave credit but it would be greatly appreciated if you did.
• Make sure you have a basic understanding of HTML/CSS as well as PHP so that you can properly use these tutorials.
PHP INCLUDES
PHP includes can be very helpful if you have a lot of content/pages on your site. PHP includes allow you to "copy" whatever is on your "include" page and it puts it the section where you apply the code. First of all, you need to make your "include" page(s) and put whatever belongs in each. After that use the code below and apply it to the proper section to which you want the certain information,text,images,etc. to show but you need to make sure that your "PAGENAME.php" page has the whatever you need in it and whatever is on your "PAGENAME.php" page will show up in that certain section.Here is the code:
And if that won't work, you might want to put the full address which is demonstrated in the below code:
Also, if someone views the source code for one of your pages, they'll only see the raw html of your "PAGENAME.php" page. You might also want to know that your "PAGENAME.php" does not have to have <html> or <body> tags or any tags like that. If you're still confused, read ahead. For example, I don't want to have to go through each of my pages and edit my affiliates if I get new affiliates so instead, I'll use the PHP include method. I made a page that has all of my affiliates and what not then I put the name of that page where the "PAGENAME.php" part is. Therefore, the PHP include will show whatever is on that page that I made into the certain section into which I applied the code in. Now anytime I need to update my affiliates, I just have to update the page I made and the affiliates section is updated as well. Pretty easy, huh? :) Enjoy.















