ultimatehandyma
August 4th, 2005, 01:45 PM
Hi Everyone.
I have just finished doing a index for my site where people can advertise. I sorted the areas by county first then by major towns/cities. This meant that I have over 240 pages for the towns, I did these in PHP as I have some affiliate links on my site and I thought it would be good to use the php include line-<?php include("example.htm"); ?>
This way If I changed the file example.htm it would change on all 240 pages that I had the php include line on. But when I have changed the included file, nothing at all has changed on the pages and after closer inspection I can see that the script for the affiliate banners has been copied onto each page, despite me using the PHP include line!!!!!
Here is the link to the suppliers index (http://www.ultimatehandyman.co.uk/suppliersindex.htm)
Now if I want to change an affiliate banner I have to edit 240 pages individually!
Is there anyone that can tell me where I went wrong? and is there anything I can do to correct it, without editing all 240 pages!
Thanks in advance
ultimatehandyman (http://www.ultimatehandyman.co.uk/)
I have just finished doing a index for my site where people can advertise. I sorted the areas by county first then by major towns/cities. This meant that I have over 240 pages for the towns, I did these in PHP as I have some affiliate links on my site and I thought it would be good to use the php include line-<?php include("example.htm"); ?>
This way If I changed the file example.htm it would change on all 240 pages that I had the php include line on. But when I have changed the included file, nothing at all has changed on the pages and after closer inspection I can see that the script for the affiliate banners has been copied onto each page, despite me using the PHP include line!!!!!
Here is the link to the suppliers index (http://www.ultimatehandyman.co.uk/suppliersindex.htm)
Now if I want to change an affiliate banner I have to edit 240 pages individually!
Is there anyone that can tell me where I went wrong? and is there anything I can do to correct it, without editing all 240 pages!
Thanks in advance
ultimatehandyman (http://www.ultimatehandyman.co.uk/)