Re: command line parser

From: Date: Wed, 05 Sep 2001 07:50:38 +0000
Subject: Re: command line parser
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66008@lists.php.net to get a copy of this message
> Does anyone know if there's a php command line parser, > that lets you run php-scripts from the command prompt instead of running > them over http. (much like perl) Make sure you compiled php as a binary.. and then start your script with: #!/path/to/php -q <?php //code here ?> Then simply perform a chmod 755 or whatever you wish on that file to make it executable, and then you can run it from the shell. / franklin

« previous php.general (#66008) next »