How can I execute a PHP script using command line?
| SitePoint Sponsor |
How can I execute a PHP script using command line?


Example (Linux):Code:/path/to/php/executable /path/to/php/file
Example (Windows):Code:/usr/bin/php/php5 /var/www/myphpscript.php
Code:C:/php5/php.exe C:/inetpub/wwwroot/myphpscript.php
Bookmarks