If you want to stick with the system you have just create a page called RUN.php or something. Create a js onload function that is recursive on a timed interval of like 10 seconds. Within that page put the single script to check if time is the desired time and then if so send the email. You can leave this page open on any system anywhere and it will work. I work with large scale business software that is written in VB? and it does crap like this and they get paid bukoo bucks for it. So its like a service on the system you run it on. Its not to shabby if you have a server that is running all the time. Just open the page on it and leave it running.
Matter fact I think I will try this on a program I am writing now.
Yup that was what I told earlier.
Keepeing a page open and making it Auto-Refresh will solve the problem.
But then there are reliability issues if the page closes.
This code will help your program.
You won't need a recursive js onload function. (I think) Header refresh will take care of it.
Just code the function to check time and send email.
<?php
check_if_Time_is_Greater_And_Send_Email($timeToSendEmail);
header('Refresh: 5');
?>if it is on a windows system you can use a scheduling program to automatically invoke ie to run the proper script at the appointed time
Nice Idea I can use a windows scheduling agent to launch the webpage and it can check weather the time is greater then the Required time to send the report.
Cool never thought of it.
I will try this, if I get stuck I will message you.
Thanks a lot.