Hello!
I'm new to this forum. I didn't find anything useful by using search...
I have installes Windows 7 CLI php (5.2). I associated .php with php itself, and
I have defined a PATHEXT for .php so that .php is not necessary to run a script.
Now it runs (apparently) fine, I mean echo echoes something. But I cannot get arguments.
Here are the program and its output.
1. The script:
-----8<----------8<----------8<----------8<----------8<----------8<-----
<?php
echo "Program arguments:\n";
echo "Argc = " . $argc . "\n";
print_r($argv);
?>
-----8<----------8<----------8<----------8<----------8<----------8<-----
2. A test and its output:
-----8<----------8<----------8<----------8<----------8<----------8<-----
C:\Users\Dora\PHPTest\ScripTest 1 2 3 4 5
Program arguments:
Argc = 1
Array
<
[0] => C:\Users\Dora\PHPTest\ScripTest.php
>
-----8<----------8<----------8<----------8<----------8<----------8<-----
That's it. I would expect argc to be 6 and the array to have 6 elements.
By the way, I am using Windows 7 ultimate 64 bits.
Any hint?
Thanks,
Dora.


