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 trying
I'm using this on Apache. You need to include 'inc/globals.php' in your
script.
inc/globals.php
define('RELPATH', GetRelativePath());
?>
inc/functions.php
function GetRelativePath() {
$RELPATH = str_replace(UpDirectory(__FILE__), '',
dir_name($_SERVER['SCRIPT_NAME]));
$REL
2 matches
Mail list logo