![]() |
crontabs executing PHP scripts...
5 * * * * wget --spider -q http://url_to_file.php
10 * * * * wget --spider -q http://url_to_file.php * 1 * * * wget --spider -q http://url_to_file.php Does this look about right if I'm running command line PHP? |
Quote:
First line will run wget on the 5th minute of every hour. Second like will run on the 10th minute of every hour and the thrid will run every hour at the begining of the hour. Hopefully this helps you out :) PS: You may or may not need to put the full path to wget. You should be able to find the absolute path by running "which wget" without the quotes |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Thanks :) |
Quote:
Running PHP as a CGI - The webserver forks the process and executes the script (somewhat simular to the command line) Running PHP as a module - APACHE internally processes the script instead of forking a process and using the php binary file to execute the script. |
Quote:
Are the scripts located on the same server as the wget crontab? |
Quote:
|
Quote:
Find the path to the PHP binary "which php" without quotes. Then change the lines to this 5 * * * * /usr/local/bin/php /path/to/php/script.php But only if you only want to run that script... if you still want to use wget's spidering abilities then stick to the way you've done it |
Quote:
|
Quote:
Hit me up on ICQ at 5956902 if you need anymore help :) (assuming that by module you mean executable binary file which is the php parser/interrupter) If php is installed as an APACHE module and not as a binary file then you wont be able to do it and will have to use wget/apache OR you could just install PHP as a binary file :) |
All times are GMT -7. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123