note 97819 added to function.require

From: Date: Mon, 10 May 2010 12:04:12 +0000
Subject: note 97819 added to function.require
Groups: php.notes 
Request: Send a blank email to php-notes+get-169112@lists.php.net to get a copy of this message
if you want always include, require, open files using some 'root' folder based path you may may put file '.htroot' in 'root' folder and use this. while(!file_exists(getcwd()."/.htroot")){chdir('..');} This code change current dir to dir where '.htroot' file located and everywhere you can use relative to 'root' paths. Please avoid absent of '.htroot' file. ---- Server IP: 69.147.83.197 Probable Submitter: 85.140.39.82 ---- Manual Page -- http://www.php.net/manual/en/function.require.php Edit -- https://master.php.net/note/edit/97819 Del: integrated -- https://master.php.net/note/delete/97819/integrated Del: useless -- https://master.php.net/note/delete/97819/useless Del: bad code -- https://master.php.net/note/delete/97819/bad+code Del: spam -- https://master.php.net/note/delete/97819/spam Del: non-english -- https://master.php.net/note/delete/97819/non-english Del: in docs -- https://master.php.net/note/delete/97819/in+docs Del: other reasons-- https://master.php.net/note/delete/97819 Reject -- https://master.php.net/note/reject/97819 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169112) next »