note 62777 deleted from function.include by betz

From: Date: Thu, 09 Mar 2006 13:31:23 +0000
Subject: note 62777 deleted from function.include by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-105142@lists.php.net to get a copy of this message
Note Submitter: emailforphpnet at katamari dot com dot br Reason: bad code ---- About the note $pathFix = dirname(__FILE__); include("$pathFix/../somedir3/C.php"); //Works all the time... This will not work if the $pathFix is something like /a/very/big/sequence/of/dirs/ so, it´s easy to know where the includes are and use $_SERVER['DOCUMENT_ROOT'].'/somedir3/C.php'

« previous php.notes (#105142) next »