note 96367 deleted from function.getcwd by danbrown
| From: | danbrown@php.net | Date: | Tue, 23 Feb 2010 16:48:36 +0000 |
| Subject: | note 96367 deleted from function.getcwd by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166290@lists.php.net to get a copy of this message | ||
Note Submitter: rblon at fastmail dot fm
----
In response to znupi69:
I start all php scripts that I run from the command line (or as cron job) with the following
statement:
chdir(dirname(__FILE__));
to be able to use relative paths with an include.