[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP from Command Line



On Wednesday 25 September 2002 04:17 pm, Damion C wrote:

>
> How about:
>
> #!/usr/bin/php -q
> <?
>
> print "Arg Count: " . $argc . "\n";
> print $argv[0] . " " . $argv[1];
>
> ?>
>

[root web]# php -c /etc/httpd/php.ini -f test3.php
Arg Count: 1


-- 
Gerald Waugh 
http://frontstreetnetworks.com         http://raqware.com
Front Street Networks LLC   Phone: +1 203 785 0699
229 Front Street, Ste. C, New Haven CT 06513-3203