I want to pass two parameters to a simple script running on my web server.
The script "parpass.ph p" looks like this:
<?php
echo "The total number of parameters passed was: $argc \n";
echo "The parameters passed were: ";
foreach (argv as $val) {
echo "$val ";
}
echo " \n ";
?>
I tried running this script by typing this in my browser window
http://www.myserver.org/parpass.php parm1 parm2
The script runs but does not report any parameters
Any help would be appreciated.
I'm new to PHP but am getting better.
Thanks to all
John
The script "parpass.ph p" looks like this:
<?php
echo "The total number of parameters passed was: $argc \n";
echo "The parameters passed were: ";
foreach (argv as $val) {
echo "$val ";
}
echo " \n ";
?>
I tried running this script by typing this in my browser window
http://www.myserver.org/parpass.php parm1 parm2
The script runs but does not report any parameters
Any help would be appreciated.
I'm new to PHP but am getting better.
Thanks to all
John
Comment