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

[cobalt-users] PHP from Command Line



I'm trying to setup a PHP script from the command
line, and I'm trying to pass arguments to it. Sample:

<?
$test = $argv[1];
print $test;

$demo = "This Works";
print $demo;
?>

When I run the script, I run it using:
php test.php blah

Notice, I'm passing the argument, "blah". The output
should be:

X-Powered-By: PHP/4.0.6
Content-type: text/html

blahThis Works

Instead, the output is:

X-Powered-By: PHP/4.0.6
Content-type: text/html

This Works

The "blah" does not print. I can NOT get the arguments
to work!

I'm posting this to the cobalt mailing list, because I
am doing things "correctly" using PHP. My only
assumption left is that for some reason, Cobalt is not
supporting this.

Can anyone help?

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com