note 20404 added to function.include
| From: | jwmedia at jwmedia dot net | Date: | Tue, 02 Apr 2002 22:15:05 +0000 |
| Subject: | note 20404 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28520@lists.php.net to get a copy of this message | ||
to handle my nested includes I do the folowing:
<?
$documenr_dir = getcwd();
chdir("/<my_absolute_include_path>")
<myincludes>
chdir($documenr_dir);
?>
This alows me to nest includes reguardless of the directory of the original document without
interfering with the current directory once the original document gets controll back.
--
http://www.php.net/manual/en/function.include.php
http://master.php.net/manage/user-notes.php?action=edit+20404
http://master.php.net/manage/user-notes.php?action=delete+20404
http://master.php.net/manage/user-notes.php?action=reject+20404