Is it possible to include files in your script from other directories and keep the include files graphics ? I tried this and the graphics do not link correctly. The graphics are all coded with relative paths.
please help ?????
be aware that when you include file, then you need to have relative links from the file in which you are including. The best practice is to keep all the links absolute so that you have no problems while including. Or you can parse relative links and make proper modification. But it's much harder. 🙂
Thanks, If the originally site coding was mine I would structure it better, but its someone elses mess I am fixing.🙁
It was worth a try anyway !!
cheers
would code like this work?
... <base href="..."> ... <?php include("file.htm") ?>
sound like it may do the job.... i'll give it a try.
It will work in case you have no links in the big file, from which include() is called. In other case you'll get those links messed up 🙁
If you wana know how to include gfx look into the function readfile.