Forum Moderators: bakedjake

Message Too Old, No Replies

What is the best way to run the cron from webmin?

I want to execute a php file

         

AjiNIMC

2:13 pm on Jul 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the best way to run the cron from webmin for a php script which is using $_SERVER['DOCUMENT_ROOT']?

Should I use

wget [.......] or
lynx [.......] or
any other way.

Thanks,
AjiNIMC

StupidScript

7:10 pm on Jul 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You would use the Command Line Interface binary or the CGI binary, depending on how your system is configured. See this doc [us3.php.net] for details.

Basically, though:

php /somedirectory/blah.php

And it doesn't need the PHP file extension, as long as there's something in the script for PHP to parse.