For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2004 > Re: $_SERVER['argv'][1]









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: $_SERVER['argv'][1]
Andy Hassall

2004-03-26, 11:13 pm

On 26 Mar 2004 07:33:39 -0800, brendanjobs@yahoo.co.uk (brendan) wrote:

>Im trying to get a string from the command line using
>
> $_SERVER['argv'][1];
>
> The problem is that $_SERVER['argv'][1] does not get the whole
>string on the command line, instead it stops at the 2905th character.
>
>I know there is no control character causing this problem, so i dont
>know what else would prevent the whole argument being passed to
>$_SERVER['argv'][1].
>
> Is there a limit to the number of character on the command line.


Typically yes. It's operating system (and shell) dependent; and that's even
before it gets to PHP.

--
Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
pandora

2004-03-28, 10:10 pm

work with system() in that case

ex : /bin/bash -c "file_with_commands"
or file > /bin/bash

"brendan" <brendanjobs@yahoo.co.uk> wrote in message
news:a8492f38.0403260733.4414c6b5@posting.google.com...
> Hi
>
> Im trying to get a string from the command line using
>
> $_SERVER['argv'][1];
>
> The problem is that $_SERVER['argv'][1] does not get the whole
> string on the command line, instead it stops at the 2905th character.
>
> I know there is no control character causing this problem, so i dont
> know what else would prevent the whole argument being passed to
> $_SERVER['argv'][1].
>
> Is there a limit to the number of character on the command line.
>
> cheers
>
> Brendan



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com