Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: $_SERVER['argv'][1]
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

Report this thread to moderator Post Follow-up to this message
Old Post
Andy Hassall
03-27-04 04:13 AM


Re: $_SERVER['argv'][1]
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



Report this thread to moderator Post Follow-up to this message
Old Post
pandora
03-29-04 03:10 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:42 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.