FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Cronjob Apache module v CGI
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Cronjob Apache module v CGI [message #170614 is a reply to message #170613] Wed, 10 November 2010 11:14 Go to previous messageGo to previous message
Willem Bogaerts is currently offline  Willem Bogaerts
Messages: 8
Registered: September 2010
Karma:
Junior Member
I would run scripts as scripts and web pages as web pages. It would
surprise me if PHP was not also installed as CLI interpreter. Just open
a terminal on the machine and type:

php -v

This will show the PHP version of the CLI interpreter or a message
"command not found" if it is not installed.

But if you want to call it as a web page, you can use a simple browser,
like lynx or wget in the CRON job.

In both cases, note that CRON sees output as something that went
possibly wrong and will try to mail it to you. So you better redirect
the output of the browser or the script to a log file.

Personally, I would just use a PHP script and not use a browser from
CRON if I don't need it.

Good luck,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Most efficient way to randomize a quiz from a database
Next Topic: freelancer looking for web-development projects
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 06:47:58 GMT 2024

Total time taken to generate the page: 0.04400 seconds