Web Hosting Talk







View Full Version : PHP and cron


NewonNet
10-26-2001, 07:16 PM
Can php script be run by cron?

ffeingol
10-26-2001, 08:50 PM
Prob. yes, but a few more details about what you want to do would help ;)

Frank

thewitt
10-26-2001, 08:54 PM
Sure.

Check this article out for how to run php as a shell script.

http://www.phpbuilder.com/columns/darrell20000319.php3

You could also use wget to run a script from within your web space thru the web server.

-t

NewonNet
10-26-2001, 09:58 PM
Originally posted by thewitt
Sure.

Check this article out for how to run php as a shell script.

http://www.phpbuilder.com/columns/darrell20000319.php3

You could also use wget to run a script from within your web space thru the web server.

-t


Good idea to use wget. I can send the output to /dev/null

Thanks

md2001
11-11-2001, 05:54 PM
Good idea to use wget. I can send the output to /dev/null

Can someone please tell me how the actual command would have to look like? I want to run the script http://www.domain.com/script.php with wget and send output to /dev/null.

Many thanks

taz0
11-11-2001, 06:20 PM
Originally posted by md2001


Can someone please tell me how the actual command would have to look like? I want to run the script http://www.domain.com/script.php with wget and send output to /dev/null.

Many thanks


wget -q http://www.domain.com/script.php >/dev/null