Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 6, 2009, 5:02 am
rate this thread
I find this hard to believe. Which keywords were you using?
Google Suggest supplies these exact keywords:
If you have any remaining confusion, it probably has to do with cron,
not with PHP. If this is the case, you should seek help in a UNIX
$email = str_replace('sig.invalid', 'gmail.com', $from);
A cron job is a unix thingie that is set to run a particular script or
executable -- any script or executable -- at a periodic interval or
intervals. To use it with php, all you do is run the cli mode of php
passing in the script that you want to run.
When I just did a google putting in the keywords cron php, the very
first item returned was "Running PHP Scripts with Cron | HTMLCenter Web
Is your post some kind belated "April fool's joke"?
RTFMers aside, you generally run "crontab -e" from the command line
(on unix/linux) to edit your crontab (the config file for cron).
You add entries using a series of number representing increasing units
of time and the command, e.g.:
0 7 * * * /usr/bin/php /path/to/script.php >> /var/log/
That will run the script every morning at 7:00 am, and redirect its
output to /var/log/script_output.log. If you don't add the 2>&1 to the
end, you will not get your log file.
- » What large websites are built with PHP except Facebook?
- — Next thread in » PHP Scripting Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum