[PHP] Re: relative url and path_info

2012-09-30 Thread Maciek Sokolewicz
On 30-09-2012 14:21, Tom Sparks wrote: 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

[PHP] Re: Relative Url

2004-04-02 Thread K.Bogac Bokeer
I'm using this on Apache. You need to include 'inc/globals.php' in your script. inc/globals.php ? require_once('functions.php'); define('RELPATH', GetRelativePath()); ? inc/functions.php function GetRelativePath() { $RELPATH = str_replace(UpDirectory(__FILE__), '',