View Single Post
Old 02-09-2005   #7
Yug
Members
 
Join Date: Jul 2004
Location: Brisbane, Australia
Posts: 308
Default

Quote:
Originally posted by NickPapageorgio@Feb 9 2005, 01:24 PM
Do it with include files. h34r:
Agreed. Heres a quick rundown.

Make sure you rename all your files as .php

Lets say you have 3 files:

index.php
footer.php
sponsor.php


This is the contents of your index.php:
Code:
<html>
<head>
<title>index</title>
</head>
<body>
<?php include("sponsor.php"); ?>
I am an index file, woohoo!<br>
<?php include("footer.php"); ?>
This is the contents of your sponsor.php:
Code:
I am MR sponsor!<br>
This is the contents of your footer.php:
Code:
I am a footer
</body>
</html>
When u upload them, then goto load index.php in your browser, the end code when you view the source will look like this:
Code:
<html>
<head>
<title>index</title>
</head>
<body>
I am MR sponsor!<br>
I am an index file, woohoo!<br>
I am a footer
</body>
</html>
And in your browser it should look like this:

I am MR sponsor!
I am an index file, woohoo!
I am a footer


I'm 90% sure that this works, as it works for me, but im not a programmer so if i fucked it up can someone let me know?
__________________
Life moves pretty fast. If you dont stop and look
around once in awhile, you could miss it




www.YugSTAR.com
www.designbycode.com
ICQ:41724219
Yug is offline   Reply With Quote