Support Forums

Full Version: PHP and cron job [HELP]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need help making a php file that will read text off of a website, and report back (email)

I was going to combine it with a cron job, so cron job starts the .php file, php file reports back the website text, and cron job emails it to my email.

I have very little php experience, so I need help Big Grin
Get the cron to call your php script. Inside your script you can maybe use file_get_content() (http://www.php.net/file_get_contents) and use the php mailer (http://www.php.net/manual/en/function.mail.php) to send you the contents.

The cron should purely be used to schedule the calling of the script.