![]() |
How to run php script from shell?
I need to run a php script from command line, does anyone know how I can do this?
|
If your PHP was compiled as an Apache module, you can't do that. If it was compiled as a CGI then just run php -f phofile.php
|
If it's an apache module, use wget on it :)
|
Quote:
|
If you do wget or lynx or curl make sure to set timeout to something more than the deafult 30 seconds if your script takes its sweet time to run.
|
Thanks dnsmonster, that did it! :thumbsup
|
| All times are GMT -7. The time now is 01:29 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123