php-general Digest 30 Sep 2012 12:21:08 -0000 Issue 7987
Topics (messages 319301 through 319301):
relative url and path_info
319301 by: Tom Sparks
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin 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"
--- End Message ---