php-windows | 2003032
Date: 03/30/03
- Next message: Rahul Jadhav: "[PHP-WIN] Download of GIF"
- Previous message: Frank Westerbeke: "[PHP-WIN] Re: Global & POST & uploading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi!
I'm using PHP 4.3.1, IE 5.5, Win ME
I'm trying to use php through DOS command line.
Running the very basic script
$argv = $_SERVER['argv'];
var_dump($argv);
I noticed that the command line arguments are split at a + character, even
if between double quotes.
for instance
php test.php a+b
or
php test.php "a+b"
both return 3 arguments, "test.php", "a" and "b".
I don't know if it is a DOS or php problem (though if you name a file
a+b.txt, the DOS command type a+b.txt runs correctly, which seems to
exonerate DOS...).
My questions are more practical : does anybody knows how to pass a + in an
argument?? Are there other characters that are special in addition to " and
+ ??
Thanks in advance
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Rahul Jadhav: "[PHP-WIN] Download of GIF"
- Previous message: Frank Westerbeke: "[PHP-WIN] Re: Global & POST & uploading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

