Re: Php shell scripting

From: Date: Thu, 11 Dec 2003 05:36:24 +0000
Subject: Re: Php shell scripting
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172436@lists.php.net to get a copy of this message
$argv, possibly $_SERVER['argv']. Cheers, Rob. On Thu, 2003-12-11 at 00:31, Jake McHenry wrote: > Does anyone know how I can pass variables into a script being executed > from the command line? > > I have a script, named testscript. So far, I have been getting all my > variables from the system env command, not a big deal. But I want to > input a username into the script, like testscript jmchenry. > > In basic shell scripting, the value of any parameters would be $1, $2, > $3, etc.. within the script, but how can I do this with PHP? Is it > even possible? > > Thanks, > > Jake McHenry > Nittany Travel MIS Coordinator > http://www.nittanytravel.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#172436) next »