Require support for nnCronLite and PHP execution

nnCron and nnCron LITE discussion

Require support for nnCronLite and PHP execution

Postby brum » Tue, 03 Jul 2007, 10:37

Hello,

I'm having trouble on my server with the program. The logs indicate that it's being run every hour which is good, and it finds a PHP script fine, but it gives "Result: 0". This means it's doing nothing more than reading/opening the script right? I need the program to actually execute it or actively open it similar to it being accessed via the URL. Are there some sort of tags like -exec or something that need to be used?

Thanks fo ryou help,

Lee.
brum
 
Posts: 1
Joined: Tue, 03 Jul 2007, 10:31

Postby Valery_Kondakoff » Tue, 03 Jul 2007, 11:40

you should execute your script by pointing to your php.exe file. something like this (check the php documentation for required command line switches):

Code: Select all
* * * * * [absolute_path_to]php.exe [-required_switches] [absolute_path_to_your]script.php


HTH!
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 1 guest

cron