include help

Hi. I have a php script that includes another webpage. The other webpage is simply an apache listing of the files in that directory. However, for some reason, the links are off, and are instead from the directory my php script was called from. Example: I call

http:://duke3d.org/test.php

I then include the contents of

http://duke3d.org/Matt

It will list them like the normal apache listing, but all links on the page are like

http://duke3d.org/file1

instead of

http://duke3d.org/Matt/file1

Any ideas?

Sponsor our Newsletter | Privacy Policy | Terms of Service