Resolving paths when using a 'en' script (Parsed as .php)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mikebr
Forum Contributor
Posts: 243
Joined: Sat Sep 28, 2002 7:05 am

Resolving paths when using a 'en' script (Parsed as .php)

Post by mikebr »

I have set up a script on my server called 'en', so when a user goes to my site the 'en' script is loaded then decides what php page to include, the problem I have is that the paths in the included pages do not resolve. I did a little test and found that by adding a '/' before the paths to the image folder etc. that these items then load, so.... is there a way that I can force the script to make these pages use a '/' before the paths? I can't easily change the paths in the files as they are outputted through a 'web' page creator app.

Thanks
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

Not unless you can tell the "web page creator app" what to do. Via an API or so.
Post Reply