note 44979 added to ini.sect.path-directory
| From: | greg at freephileSPAM_TRAP dot com | Date: | Sun, 22 Aug 2004 03:56:57 +0000 |
| Subject: | note 44979 added to ini.sect.path-directory | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75081@lists.php.net to get a copy of this message | ||
Adding the current directory to your include path can make it useful to make your scripts
installable in other environments:
<?php
$defaultPath = ini_get('include_path');
$thisDir = getcwd();
$defaultPath .= ":$thisDir"; // colon is unix-style
ini_set('include_path', $defaultPath);
?>
----
Manual Page -- http://www.php.net/manual/en/ini.sect.path-directory.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44979
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44979&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44979&report=yes
Search -- http://master.php.net/manage/user-notes.php