note 107488 deleted from reserved.variables.server by tularis

From: Date: Mon, 13 Feb 2012 12:42:12 +0000
Subject: note 107488 deleted from reserved.variables.server by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186102@lists.php.net to get a copy of this message
Note Submitter: madmax8002[at]googlemail[dot]com ---- concerning trailing slash "/" on $_SERVER['DOCUMENT_ROOT'] and the comment by kamazee at gmail dot com I have the same problem as you describe. However your solution seems not to work (look at definition of dirname()) This is what I found to be working: $realpath = realpath ($_SERVER['DOCUMENT_ROOT']."/"); $realpath = str_replace ("//", "/", $realpath);

« previous php.notes (#186102) next »