note 39655 added to features.commandline
| From: | linn at backendmedia dot com | Date: | Fri, 06 Feb 2004 11:12:40 +0000 |
| Subject: | note 39655 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64720@lists.php.net to get a copy of this message | ||
For those of you who want the old CGI behaviour that changes to the actual directory of the script
use:
chdir(dirname($_SERVER['argv'][0]));
at the beginning of your scripts.
----
Manual Page -- http://www.php.net/manual/en/features.commandline.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39655
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39655&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39655&report=yes
Search -- http://master.php.net/manage/user-notes.php