Re: PHP CGI mode and command line variables

From: Date: Thu, 24 Jul 2003 05:02:39 +0000
Subject: Re: PHP CGI mode and command line variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156598@lists.php.net to get a copy of this message
--- CDitty <mail@redhotsweeps.com> wrote: > Thanks man. That got rid of the error, however it is not using the > variable in the script. You have to read them in. I think you can just loop through $argv, so something like this will show you what PHP is receiving: <? echo "A total of $argc parameters are available:\n\n"; foreach ($argv as $curr_parameter) { echo "$curr_parameter\n"; } ?> Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#156598) next »