Jump to content

php script run as a cron job


Looktrne

Recommended Posts

I need to run a php script as a cron job

 

I wrote the script that conects to a database and sends out emails to members

 

my concern is if a robot visits this file it will run the script

 

how can I make the script run only when called as a cron job?

 

should I have it check the IP?

 

or what is the best way to do this

 

thanks for any help

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/150665-php-script-run-as-a-cron-job/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.