Is query character limitation for PHP scripts done via command line?
(Backstory: My PHP script executes another PHP script via the command line (PHP command "exec ()") so that the cURL session generated by the target script does not cause the original PHP script to hang. I do this to send transactional email without slow page loads for my user if the email servers are lagging.)
I am calling a PHP script like this:
exec ( "[php] [target script] [querystring]" ), [querystring] HTTP-GET- ( = & 2 = 2). , script , , PHP- , PHP.ini, PHP- $argv, , ( - querytring .)
, : ? , ? HTTP - - , Apache GET ? , , , ?
Note that PHP installations with the suhosin package installed will have a default 512 character limit for getting parameters. Despite bad practice, most browsers (including IE) support URLs up to 2000 characters, while Apache has a default of 8000. To add support for long parameters with suhosin, add suhosin.get.max_value_length = to php.ini
source to share