note 86996 added to function.getopt
| From: | paul at vtribes dot com | Date: | Thu, 13 Nov 2008 23:48:32 +0000 |
| Subject: | note 86996 added to function.getopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146509@lists.php.net to get a copy of this message | ||
Do not try to pass options to the php binary as well as to the script as this does not work.
I tried:
> php -f script.php -tdaily
with:
<?php
$options = getopt("t:");
var_dump($options);
?>
and got nowhere fast.
If you have this same issue make sure that the php binary is in your $PATH
----
Server IP: 69.147.83.197
Probable Submitter: 72.204.219.26
----
Manual Page -- http://www.php.net/manual/en/function.getopt.php
Edit -- https://master.php.net/note/edit/86996
Del: integrated -- https://master.php.net/note/delete/86996/integrated
Del: useless -- https://master.php.net/note/delete/86996/useless
Del: bad code -- https://master.php.net/note/delete/86996/bad+code
Del: spam -- https://master.php.net/note/delete/86996/spam
Del: non-english -- https://master.php.net/note/delete/86996/non-english
Del: in docs -- https://master.php.net/note/delete/86996/in+docs
Del: other reasons-- https://master.php.net/note/delete/86996
Reject -- https://master.php.net/note/reject/86996
Search -- https://master.php.net/manage/user-notes.php