Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messagework 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.