|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-30 16:01 UTC] rasmus@php.net
[2002-08-03 09:21 UTC] helly@php.net
[2002-08-10 18:47 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jun 17 22:00:01 2026 UTC |
With the CLI version, the only way to access the script name is through: $_SERVER['argv'][0] In 4.2.2, $_SERVER['PHP_SELF'] is set, but empty. In 4.3.0-dev, it's not even set. I don't know which of $_SERVER['SCRIPT_NAME'] or $_SERVER['PHP_SELF'] would be more appropriate, but I think setting either of those to the script name would be more intuitive, and might make porting web-based scripts to CLI-based scripts easier. - Colin