note 77529 deleted from function.include by danbrown

From: Date: Mon, 18 May 2009 00:58:13 +0000
Subject: note 77529 deleted from function.include by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155455@lists.php.net to get a copy of this message
Note Submitter: gomodo at free dot fr ---- Reponse to rayro at gmx dot de (21-Aug-2007 11:48 ) Hi rayro, your code : <?php include(realpath('../../../test.php')); ?> ..Don't works when a function is called by another remote function (with a another remote include) -> realpath don't use __FILE__ reference :( This works always and everywhere ( thanks to Jonny Rylands http://fr2.php.net/manual/fr/function.realpath.php#56773 ) : <? include (realpath(dirname(__FILE__).'/relative/path/to/include.inc.php')); ?> friendly.

« previous php.notes (#155455) next »