note 24970 added to features.commandline
| From: | jeff at noSpam dot php dot net | Date: | Fri, 06 Sep 2002 10:13:27 +0000 |
| Subject: | note 24970 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36234@lists.php.net to get a copy of this message | ||
You can also call the script from the command line after chmod'ing the file (ie: chmod 755
file.php).
On your first line of the file, enter "#!/usr/bin/php" (or to wherever your php executable
is located). If you want to suppress the PHP headers, use the line of "#!/usr/bin/php -q"
for your path.
--
http://www.php.net/manual/en/features.commandline.php
http://master.php.net/manage/user-notes.php?action=edit+24970
http://master.php.net/manage/user-notes.php?action=delete+24970
http://master.php.net/manage/user-notes.php?action=reject+24970