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?