Re: PHP CGI mode and command line variables

From: Date: Thu, 24 Jul 2003 17:28:26 +0000
Subject: Re: PHP CGI mode and command line variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156693@lists.php.net to get a copy of this message
That worked like a charm. Thanks Chris. I've added this to my snippet collection. :) At 12:02 AM 7/24/2003, Chris Shiflett wrote:
--- 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 (#156693) next »