I was wondering if there’s a way to have a php script on my web server email me whenever a file from another web server changes.
For instance, there’s this file that changes frequently: http://media1.clubpenguin.com/play/en/web_service/game_configs/paper_items.json
I blog about a game and that file is very important for creating post on updates before my competitors. I often forget to check it though.
Is there a way to have a script email me whenever that file updates, or check that file to see if it has updated, and email me if it has?
You need have this two files in same folder.
In scriptForCron.php write:
And then add scriptForCron.php to cron job.
You can ask hosting support for it.