Communauté Informatique NDFR.net : crontab - Programmation Web (HTML, PHP, ASP, Java, XML, etc.)
 
crontab
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-06-2003, 22:54
Magi-X's Avatar
Magi-X Magi-X is offline
Modérateur
1 Highscore
 
Join Date: 31-10-2002
Location: Bruxelles
Age: 41
Posts: 816
Send a message via MSN to Magi-X
Tire la langue crontab

me revoila avec une question sur php


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?
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 23:13.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.