relative url and path_info
| From: | Tom Sparks | Date: | Sun, 30 Sep 2012 12:21:02 +0000 |
| Subject: | relative url and path_info | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319301@lists.php.net to get a copy of this message | ||
I have created a php script that use $_SERVER['PATH_INFO'], for the different
sub-sections
the links now looks like this http://localhost/collection/popups.php/models/bttf/car01/
my web browser cant load my images/javascripts/etc because it is trying to use
relative url from http://localhost/collection/popups.php/models/bttf/car01/*
witch is incorrect, but the browser gets a 200 (ok) message from the server
my images/javascripst/etc is relative to http://localhost/collection/*
but my requirement dictate relative url only because I may move the folder
later to a new location
what are my options?
---
tom_a_sparks "It's a nerdy thing I like to do"