How to realize

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
kpoxo6op
Forum Newbie
Posts: 1
Joined: Sun Mar 06, 2011 6:18 am

How to realize

Post by kpoxo6op »

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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: How to realize

Post by John Cartwright »

Have you looked into using CRON (Unix systems) or Task Manager (Windoze)?
gooney0
Forum Commoner
Posts: 56
Joined: Fri Jan 21, 2011 1:40 pm
Location: Reston, VA

Re: How to realize

Post by gooney0 »

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
Post Reply