Reply to Re: scheduling a PHP program for after hours run.

Your name:

Reply:


Posted by Erwin Moller on 11/07/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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация