Posted by Christoph Burschka on 03/23/07 07:48
Alan Larsson schrieb:
> Not sure if PHP is right for this... but maybe you guys can point me the
> right way.
>
> I want a website that with the click of a button by someone accross the web
> can run a predefined scheduled task on the web server.
>
> Any ideas?
>
>
What is this predefined task? Is there a shell script or program you can
already run from the command line, but want to trigger through a web
page request as well?
If Apache and your PHP settings have the sufficient permission needed to
execute system commands, then that will work - the relevant function is
system() - as in system("ls -l").
If you want to code the entire scheduled task in PHP, it will depend
more on what it actually deals with - files, database changes, etc...
--
Christoph Burschka
[Back to original message]
|