|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can anyone tell me how to run a set script which will be a mysql query at a certain time each day??
Thanks in advance |
|
#2
|
|||
|
|||
|
use cron to start a perlscript
that uses lwp, let it contact the php-script |
|
#3
|
|||
|
|||
|
Or you can install PHP as CGI (you can have both installed: apache module and as CGI).
Example: <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> #!/usr/local/bin/php -q <? // -q parameter tells php not to send http headers print "Hello world"; ?> [/code] Then you could edit your Crontab list: crontab -e then write: 30 10 * * * /home/user/myscript.php3 Then your script will run every day on 10:30 a.m. Read "man crontab" for more info. Regards, Goral |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Automatically Running a script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|