Help - Search - Members - Calendar
Full Version: PHP
Hostony Board > General Support > HowTo
i was just wondering if anyone can instruct me on how to make a php site or upload one and where..and how to get it to work..i also might need somework customizing it lol im pretty sure ill be fine on that part thow never did php.. and a forum where can i get one of those? i should hire someone to do my site but meh i wanna learn..
PHP is an extremely powerful thing to know.

This will get you started:
Create three files: index.php, header.php and footer.php

In index.php put:
<title>My Page!</title>
<? include 'header.php'; ?>
<? include 'footer.php'; ?>

In header.php put:
<a href="">GOOGLE!</a>&nbsp;&nbsp;
<a href="">HOSTONY!</a>&nbsp;&nbsp;
<a href="">ShoutDRIVE Radio!</a>

In footer.php put:
This is my footer. Hello!

You will see that the code in the index.php file, <? include 'whatever.php'; ?> will include all of the contents from the files specified. You can put your content in between the two includes in the index.php file, duplicate the file into different ones like contact.php, etc.

Cheers, bud! Welcome to the world of PHP: Manual
PHP Beginners Guide
Boy, that turned out to be a waste of time. tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.