Quote:
Originally posted by yorgo
You make it sound easy.....
|
Here's something easy you can do with php...
It's simple, but useful...
Create an html file called "banner.html" with your banner code in it like this
<center>
<a href="http://sponsor.com/">
<img src="images/banner.jpg" width="468" height="80" border="0"><br>
<b><font face="verdana">Insert sales text here</font></b></a>
</center>
Upload it to your server and check that it's there.
Copy an existing html page and change the extension to ".php" instead of ".html"
(NB: You can set up your server to read php from html pages)
Amongst the html of this page add these three lines of php code...
PHP Code:
<?php
require("banner.html");
?>
and when you view the new .php page on the server, you will see that the banner.html has been pulled in (included)within the php page. The php "engine" on your server has executed the command to include the banner info, before the page is served to the browser.
This is useful because you can link up all your sites to that single banner.html, and then if you wanna change sponsor for any reason, you only need to change the banner.html and ALL your sites will change sponsor because they are being served from one central point, in the same way you can do this with SSI.