
January 10th, 2000, 04:15 AM
|
|
Registered User
|
|
Join Date: Oct 1999
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
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
|