|
Posted by Erwin Moller on 10/27/37 11:24
Dross wrote:
> WinXP Pro, PHP4, Webserver=xitami, Mysql
>
> I have written a php program which I would like to schedule for a daily
> run.
>
> The program queries a database for about to be due quality system tasks
> (this is a manufacturing org and we have scheduled events, a big list
> actually) and emails the about to be due requirements.
>
> But it appears the php program must run from within a browser.
>
> What I would like to do is, schedule the php program via Win scheduler
>
> Is this doable, or am I using the wrong program (php). I am old and
> have no memory.
>
> I want this automatic, I don't want to have to log on and run this
> program.
>
> thanks
> BobC
Hi Bob,
PHP just loves to be within a webcontext, but you can run it from
commandline too.
Try to find the cgi version of PHP.
(named php-cgi.exe I think)
Maybe you have it already in your PHP.dir
Otherwise download it.
Open a commandprompt, go to the PHP directory where the CGI resides.
try something like
php-cgi -v
if it answers with versionnumber: good.
Now try to invoke the script you want to shedule by hand.
Once you have it running from commandline, try to shedule it.
(Pay attention to userrights and such if sheduler runs it. But I must admit
I know not much of the sheduler, so maybe I talk bull.)
Good luck
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|