Good afternoon everyone.
The task: a script authorizes on a certain site every few minutes and tracks if a certain string has changed in HTML-code. If it has changed, the script sends me a SMS or e-mail.
I have made authorization, checking, I can manage with e-mail sending.
Is it possible to make it work without launching in a browser? At this moment, I have this: I’m launching Apache, opening a browser, typing “localhost/…”, launching the script; it does its job and refreshes the page every 5 minutes.
But, I want he does its job on my local machine or on a hosting on background. I know word “cron” by hearsay. I know that e-mail is usually being cut on free hostings.
Please help me to implement the task. What SMS services do you know for that etc?
How to realize
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: How to realize
Have you looked into using CRON (Unix systems) or Task Manager (Windoze)?
Re: How to realize
What kind of server are you using? This would be done very differently on windows than Linux or BSD.
If it is a Unix-like system I'd use "cron" and command line php
Command line php is easy:
php yourscript.php
If it is a Unix-like system I'd use "cron" and command line php
Command line php is easy:
php yourscript.php