Re: command line parameter
| From: | Nikolajus Krauklis | Date: | Fri, 08 Mar 2002 09:14:58 +0000 |
| Subject: | Re: command line parameter | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1480@lists.php.net to get a copy of this message | ||
> Question: is it possible and how to send command line parameters to a
> php script?
Hi Fei,
try this script:
<?
echo "How many arguments: $argc\n";
print_r($argv);
?>
now try to execute this script in such way:
php -q script.php
php -q script.php Testing arguments -h 10
I think after that you will see how it works.
Nikolajus Krauklis