crontab
me revoila avec une question sur php :o
ceux qui connaisse unix, connaisse evidemment le ptit crontab!
Mais j'aimerais savoir comment faire cela avec php, car je devrais faire kk truc tout les x !
j'ai cherché sur le net, mais ce n'est pas très kler: par exemple:
Quote:
If the answer to the question above is "CGI" then you need to add a line to your PHP script. It has to be the first line of your script and must contain your server's PHP executable location:
#!/usr/local/bin/php -q
That looks a lot like PERL now, doesn't it? After that let's add the necessary command to our crontab. Edit /etc/crontab and add the following line:
* * * * * php /path/to/your/cron.php
Execute the following from the command line:
Shell> crontab crontab
Be sure your "script.php" has the necessary permissions to be executable ("chmod 755 script.php").
Now you are all set!
|
jsuis sur lycos et c bien un machin brol avec CGI, mais jpige pas trop leur explication!
Quelqu'un a deja fais ca avec du php?
|