Convert your site to PHP

quick, clean, easy

So you want to convert your site to PHP? Well I've put a little, painless, tutorial together that should hopefully help you learn how!

Step 1.
Make a file named top.php. Put the following code into it:

Make sure to fill in the title, stylesheet url, layout & background image, and then the position, of where you want your content to be. When done, save the file.

Step 2.
Make a file named bottom.php. Put the following code into it:

Fill in the position of where your navigation content will be on the site, then save it.

Step 3.
Make a file named style.css, or something.css. I will give you a basic Stylesheet you can use, but of course, you can customize it.

Of course change the colors, fonts, sizes, etc, whatever you want really. After you have customized it to your likings, save the file.

Step 4.
Make your index page, and name it index.php. Put the following code into it:

In between the tags, place the content in which will show up when you first visit your site. Save the file. [Make sure you don't include the spaces that I've put between the tags so the code will show up.

Step 5.
Make all your other pages, naming them for example, me.php, you.php, site.php, and so on. Use the code that I just gave you, the same one you put on your index page, and place those into your other pages, and put the content in between the tags. Save the files, and then you should have a site like mine, completely PHP, easy, painless, and quick.

I hoped this helped, and feel free to contact me if you need any additional help. If this tutorial helped you, please credit me. Thanks!

back