How to pass variables on php command line ?
| From: | Leonard Schneider | Date: | Fri, 23 Feb 2001 07:12:35 +0000 |
| Subject: | How to pass variables on php command line ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41280@lists.php.net to get a copy of this message | ||
I use PHP as script to generate HTML pages using the command
php -q script.php > file.html
I would like to pass some variables to the PHP script so that it
generates a different HTML file.
I tried the -d option but it seems it doesn't work.
Is there any means of doing this ?
Leonard Schneider
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/