Re: checking multiple URL parameters

From: Date: Thu, 16 Sep 2004 21:25:31 +0000
Subject: Re: checking multiple URL parameters
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-196920@lists.php.net to get a copy of this message
On Thu, 16 Sep 2004 13:31:08 -0700, Andrew Kreps <andrew.kreps@gmail.com> wrote: > PHP can be run from the command line, in which case the GET and POST > arrays wouldn't exist. $_GET and $_POST exist in CLI php, they are just empty initially: #!/usr/bin/php <?php print_r($_GET); print_r($_POST); $_GET['x'] = 1; $_POST['x'] = 1; print_r($_GET); print_r($_POST); ?> Array ( ) Array ( ) Array ( [x] => 1 ) Array ( [x] => 1 ) -- Greg Donald http://gdconsultants.com/ http://destiney.com/

« previous php.general (#196920) next »