Re: include() with cmd line paramters
| From: | The Captain | Date: | Sat, 23 Sep 2000 08:36:28 +0000 |
| Subject: | Re: include() with cmd line paramters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17573@lists.php.net to get a copy of this message | ||
your file might be:
#!/usr/local/lib/php
<?
for ($i = 0; $i < sizeof($argv); $i++) {
echo $argv, "\n";
}
?>
run the file like this:
file.php these are some arguments
good luck
----- Original Message -----
From: Marcio Ghiraldelli <fatfox@adaptanet.com.br>
To: <php-general@lists.php.net>
Sent: Wednesday, September 20, 2000 2:16 PM
Subject: [PHP] include() with cmd line paramters
> Hello, experts... :)
> How do I include a file passing parameters? Kind ARGV in Perl....?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>