note 77529 added to function.include

From: Date: Sun, 02 Sep 2007 10:29:28 +0000
Subject: note 77529 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-130103@lists.php.net to get a copy of this message
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. ---- Server IP: 217.174.196.197 Probable Submitter: 82.242.125.194 ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- https://master.php.net/note/edit/77529 Del: integrated -- https://master.php.net/note/delete/77529/integrated Del: useless -- https://master.php.net/note/delete/77529/useless Del: bad code -- https://master.php.net/note/delete/77529/bad+code Del: spam -- https://master.php.net/note/delete/77529/spam Del: non-english -- https://master.php.net/note/delete/77529/non-english Del: in docs -- https://master.php.net/note/delete/77529/in+docs Del: other reasons-- https://master.php.net/note/delete/77529 Reject -- https://master.php.net/note/reject/77529 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130103) next »