GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to run php script from shell? (https://gfy.com/showthread.php?t=156637)

DamageX 07-25-2003 07:05 AM

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?

dnsmonster 07-25-2003 07:10 AM

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

Libertine 07-25-2003 07:18 AM

If it's an apache module, use wget on it :)

funkmaster 07-25-2003 07:23 AM

Quote:

Originally posted by punkworld
If it's an apache module, use wget on it :)
or lynx

dnsmonster 07-25-2003 07:30 AM

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.

DamageX 07-25-2003 07:31 AM

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