RE: [a proactive example of learning by hacking] Re: [PHP] Getting queries from files FYI
| From: | Jay Blanchard | Date: | Tue, 23 Aug 2005 15:42:59 +0000 |
| Subject: | RE: [a proactive example of learning by hacking] Re: [PHP] Getting queries from files FYI | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-221180@lists.php.net to get a copy of this message | ||
[snip]
> argv[] is always available
[/snip]
As an example you could something like this...
$requestedDatabase = $argv[1];
so that foo@commandline:/usr/myApp/whatever php chaFinder.php CHA >
output.txt
will have $requestedDatabase == 'CHA'
[snip]
btw if my file names are funky I am too?
[/snip]
Like a broke neck monkey; re: http://www.bumpcity.com