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:27

On Dec 28, 4:21 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.org> wrote:
> The87Boy wrote:
> > On Dec 28, 3:54 pm, shimmyshack <matt.fa...@gmail.com> wrote:
> >> yes excatly escape the commands using " or ' and then explode by
> >> space (" ") once you have the commands as a string
>
> > Yes, but how do I split it up commands (the arguments that starts with
> > - or --)?
>
> They are already in $argv !!
>
> http://php.net/manual/en/features.commandline.php

That is not the question, but how I can split up, when there is an
argument starting with - or --, so the array's key is the argument
that starts with - or -- and the array's values is the arguments, that
follows the argument

 

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

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