Things To Know

01. Php stands for Hypertext Preprocessor.
02. It's used for dynamic web pages, which is a web page that changes over time.
example : updates, news, links, ect.

Where I use it

If you look at my sidebars I use Php in both of them. I use them for the links in case I need to change something. This is convenient for me because then I don't have to go back and change every single page of my website. I also have a php page for my affiliates, my blog, and my updates.

How do I use php

Below there is a tutorial showing how I personally use php, it might not be the way you know, but it's the way I like to use it.

The Tutorial


01. Enter your file manager in your cpanal or to where you're able to make new files, folders, ect. If you're using a cpanal it should look like the image below:



02. Next we're going to create our php page. We're going to create a new page in our file manager. Click on new file, then you're going to name your file for whatever it's going to be used for. Look at image below.



Important: make sure that you end your file name in ".php"



03. Once the page is created we're going to add the content in the php page. I suggest adding something like links, updates, or even your sites coding. Then once that you've added everything to that page it's time to add the php onto all the pages of your website. This is the only time that you're ever going to have to change every single page by hand again if you do this right.



04. Open up one of your other pages to edit, like your index page (homepage of your website) you're going to type in the same thing as the image below shows and include the full name of the php page/full path you're trying to include ( the page we created earlier. ) The full name/path of the page can be found when editing the page you're trying to insert up at the top left of the page next to "Editing:"





Remember to place this code in a DIV or wherever you want the content on your page and be sure that you're including the full name/path of the page you're trying to include

05. Once that code is included where you want it to show up, make sure that you add that to every page you plan on seeing those links, updates, codes, or whatever your putting there, on. If you're using the php for the coding of your page be sure to include that php code at the top of your page instead of in a div.

Note: make sure that the page you're trying to include the code on ends in .php. PHP won't work on a .html page

06. Now you're all done! You're officially able to use php in your pages. If you have any questions or comments about this tutorial please e-mail me or post them in the c-box. If you're having trouble with the tutorial & can't figure something out, feel free to contact me.

If you've found this useful I would love if you credited me somewhere on your page. If you'd like to do that please copy the things in the text area below!


Thanks Xplosion Graphics For the PHP help!

Text




Image