S
stefanos1990
Guest
I use the php include function to include html pages to the main index.php
Those html pages have images with relative links (<img src="image.gif">).
the html pages are not in the same directory as index.php, so the images are not found. So I'm looking for a function that let's me define in what folder index.php has to look for the images. (all the images are in the same folder as the html pages: the "pages folder").
I don't want to change the html files! so "<img src="image.gif">" has to stay that way!
Those html pages have images with relative links (<img src="image.gif">).
the html pages are not in the same directory as index.php, so the images are not found. So I'm looking for a function that let's me define in what folder index.php has to look for the images. (all the images are in the same folder as the html pages: the "pages folder").
I don't want to change the html files! so "<img src="image.gif">" has to stay that way!