note 15951 deleted from language.variables.predefined by jimw

From: Date: Fri, 14 Dec 2001 19:26:48 +0000
Subject: note 15951 deleted from language.variables.predefined by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22658@lists.php.net to get a copy of this message
This should allow you to find the document base when running as an apache module. However, is the 'require' statement really secure? I'd hate for someone to find a way to 'require' /etc/passwd, or some such. $docPath = substr($PATH_TRANSLATED, 0, strlen($PATH_TRANSLATED) - strlen($PHP_SELF)); require($docPath.'/lib/library.php');

« previous php.notes (#22658) next »