note 97936 added to function.getopt
| From: | yanpeng dot haha at gmail dot com | Date: | Mon, 17 May 2010 08:22:21 +0000 |
| Subject: | note 97936 added to function.getopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169315@lists.php.net to get a copy of this message | ||
i met a problem when using it with linux shell for passing filenames to php script.
for example: pass an abc* to the script when there are files
named "abc1" and "abc2", zhe getopt can only get abc1.
i'v writen a personal version in:
http://www.mirecle.com/2010/05/17/
php-and-repair-defects-in-the-getopt.html
----
Server IP: 222.73.207.145
Probable Submitter: 127.0.0.1 (proxied: 61.135.165.173)
----
Manual Page -- http://www.php.net/manual/en/function.getopt.php
Edit -- https://master.php.net/note/edit/97936
Del: integrated -- https://master.php.net/note/delete/97936/integrated
Del: useless -- https://master.php.net/note/delete/97936/useless
Del: bad code -- https://master.php.net/note/delete/97936/bad+code
Del: spam -- https://master.php.net/note/delete/97936/spam
Del: non-english -- https://master.php.net/note/delete/97936/non-english
Del: in docs -- https://master.php.net/note/delete/97936/in+docs
Del: other reasons-- https://master.php.net/note/delete/97936
Reject -- https://master.php.net/note/reject/97936
Search -- https://master.php.net/manage/user-notes.php