You are here: Re: PHP Cli arguments « PHP Programming Language « IT news, forums, messages
Re: PHP Cli arguments

Posted by The87Boy on 12/28/07 15:08

On Dec 28, 3:33 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.org> wrote:
> 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...

The reason why I have done it, is that it should be 5 seperate words,
and it should work with and without escapes

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация