Posted by Ivαn Sαnchez Ortega on 12/28/07 14:33
The87Boy wrote:
> I am trying to make a PHP Cli program, but there is something I do not
> know what to do
>
> If we take an example:
> php5 test.php --add Hello World I am great --delete World great --sort
> test.txt
Why don't you escape the parameters?
php5 test.php --add 'Hello World I am great' --delete 'World great' \
--sort test.txt
It's standard practice, and it will ease your life when iterating through
$argv...
Cheers,
--
----------------------------------
IvΓ‘n SΓ‘nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Menos mal que la linea no da errΒΒΒΒΒΓΒ...
[Back to original message]
|