note 98485 added to reserved.variables
| From: | autofei at gmail dot com | Date: | Fri, 18 Jun 2010 00:57:04 +0000 |
| Subject: | note 98485 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170229@lists.php.net to get a copy of this message | ||
if you try to run php through command line, for example: php.exe c:\AppServ\www\cron_cache.php. You
better avoid to use $_SERVER['DOCUMENT_ROOT'], because it will return nothing. Instead,
you can use dirname(__FILE__). The reason to use command line running php is set it as Windows
Scheduled Tasks. I did not test under Linux environment, but might be same.
----
Server IP: 69.147.83.197
Probable Submitter: 174.96.78.170
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.php
Edit -- https://master.php.net/note/edit/98485
Del: integrated -- https://master.php.net/note/delete/98485/integrated
Del: useless -- https://master.php.net/note/delete/98485/useless
Del: bad code -- https://master.php.net/note/delete/98485/bad+code
Del: spam -- https://master.php.net/note/delete/98485/spam
Del: non-english -- https://master.php.net/note/delete/98485/non-english
Del: in docs -- https://master.php.net/note/delete/98485/in+docs
Del: other reasons-- https://master.php.net/note/delete/98485
Reject -- https://master.php.net/note/reject/98485
Search -- https://master.php.net/manage/user-notes.php