Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP and cron job [HELP]
#1
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
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 941 07-27-2020, 11:26 PM
Last Post: tk-hassan
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,668 10-10-2011, 01:00 PM
Last Post: Greyersting

Forum Jump:


Users browsing this thread: 1 Guest(s)