Web Site Counters


Retro-Freak.Org Topsite


Php includes
IN ALL CODES IN THE TUTORIAL REMOVE " * " OR THEY WONT WORK.

ALOT of people need help to convert their site to php. And here is a guide how to :)
Also alot of people have been requesting this tutorial so I guess I'll make one ;P ^^ It is NOT as hard as people think. It is really simple and if you got any problems feel free to contact me.

First of all you need a ftp program + an ftp account/ a hosted site or a domain. (Not all hosters allow php. Check with your host before starting of. ) You also need to know the basics of ftp (really easy) .

Starting of, now make these files:

header.php
index.php

You should also have a css stylesheet.

When you now have made the files, open / edit the header.php file. And there add everything you want to have on the header part of your site. With that I mean like.. The things you are going to have on "every page" on your site. Like the layout, css code / shortcut, sidebar +++

A good to have there is:

Now going on to the index, there paste every site you want to "INCLUDE" with using the code below.

You atleast need to include your header. Then paste the url to the header inside where it says URL in the code above. It would be:

Now the index will include everything you put in the header and to include other sites if you put in those in a new line below. Like this. > If you now want to add the blog or anything else, make a new file named blog.php and when you open that make sure you paste in

The header include code.
And under that again paste all content / tables etc you want on the page.

Now go to your index.php again and set in another "include code" with the url with the blog... It should then look about like this in your index:

You have now made a frontpage in php ! :D Well done ;P ^^


Adding other sites

Really, it is the exact same.
Make a new file with the new name.. For example, make a site named content.php and just set the header include code on the top as usual. Then under there again you just add everything you want on the page ! :) .. Easy peasy lemon sqeezy xP .. Haha ;P On every site just do that.
On your links then just set like <*a href="http://www.blahblah.com/content.php">Content<*/a> and when you open the site it will be in php version ;P ^^

Important
ALWAYS have .php in the end of every "converted" file/site.

This tutorial has taken me a long time to make so please credit if it helped in any way. If you can figure something out feel free to contact me and I'll try to help.
Hope it helped ! :D