note 28733 deleted from function.include by sniper

From: Date: Wed, 29 Jan 2003 04:26:56 +0000
Subject: note 28733 deleted from function.include by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43001@lists.php.net to get a copy of this message
Please excuse me for my english, I am french. I have a php page in that subdirectory www.mydomain.com/subdir1/subdir1.2/page1.php that page call another php page for include() this page is in www.mydomain.com/subdir5/page_to_be_include.php in my page1.php I include page_to_be_include.php like this <?php $root=str_repeat("../", substr_count($PHP_SELF,"/")-1); include ($root."subdir5/page_to_be_include.php"); that code work very well. Now, I have a suggestion for next version of php. I recomment to the phpteam to create a new function like this: Include_from_root_domain("subdir5/page_to_be_include.php"); I think this function is to be usefull

« previous php.notes (#43001) next »