Well my whole site is going to be PHP based soon, so I thought I would use PHP includes... But I seem to be having a problem...
Say I am using the includes on my home page (index.php)....
I want to use includes in a subdir (say /included/)
The problem is, my IMG tags aren't right when I include... If I use IMG SRC ="image.gif", the references on the included page all point to root (root/image.gif), rather than /included/image.gif
If the page is on another subdir (say /reviews/), the img tags all change to that subdir... (/reviews/image.php)
So what should I do? I think SSI would work for now, and if that's the case I can just use .inc on the included pages (I assume both SSI and PHP will include those files just fine)...
But to keep things simple for my programmer, I'd like to use PHP includes all the way through...
Ideas?
|