note 50679 deleted from features.commandline by danbrown
| From: | danbrown@php.net | Date: | Tue, 25 Nov 2008 15:49:55 +0000 |
| Subject: | note 50679 deleted from features.commandline by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146922@lists.php.net to get a copy of this message | ||
Note Submitter: jeromenelson at gmail dot com
----
This is the most simple way to get the named parameter. Write the script test.php as ...
<?
echo "Yo! my name is ".$_REQUEST["name"]."\n";
?>
and run this program as follows
# php -f test.php name=Jerry
Yo! my name is Jerry
I am using PHP 4.3.3 (CGI) in Fedora Core 1 and It is working perfectly
God Bless You!