473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

PHP to edit files

I'm looking at creating a website that basically saves times and dates
and emails specific people (all taken from a mysql database) when times
have passed. I suppose something like a birthday reminder site, but not
quite.

All I'd like to know is: Is this possible and how much of an
undertaking is it to get the emails out at specific times, instead of
run as a batch at fixed times from a linux cron script.

Cheers
J

Jul 18 '06 #1
4 1193
Rik
co*********@hotmail.com wrote:
I'm looking at creating a website that basically saves times and dates
and emails specific people (all taken from a mysql database) when
times have passed. I suppose something like a birthday reminder site,
but not quite.
All I'd like to know is: Is this possible
Very possible, not even that complicated.
and how much of an
undertaking is it to get the emails out at specific times, instead of
run as a batch at fixed times from a linux cron script.
At specific times: hardly doable with PHP. Something has to trigger the
script. With the proper access, you might schedule loads and loads of
different cronjobs at specific times, but that's hardly a workable solution.

As it's about email, the "specific" time doesn't really matter though, you
can't predict how long an e-mail will take to arrive.

I'd just schedule a cronjob every 15 minutes or so, that queries the
database for tasks to perform. That should do it. If cronjobs aren't
possible, you could trigger it on site visits. If you've got a popular page,
you don't want to trigger it verey time. Add a possibility you will trigger
the script. Possibility = 1 / (average visitors per interval)

Grtz,
--
Rik Wasmus
Jul 18 '06 #2

Rik wrote:
Very possible, not even that complicated.
Excellent, thats good to hear.
At specific times: hardly doable with PHP. Something has to trigger the
script. With the proper access, you might schedule loads and loads of
different cronjobs at specific times, but that's hardly a workable solution.
True enough, i see your thinking.
As it's about email, the "specific" time doesn't really matter though, you
can't predict how long an e-mail will take to arrive.
I was hoping to be accurate to + or - 5 minutes, approximately, i think
thats fairly achievable with technology the way it is now, any more
accurate is unncessary.
>
I'd just schedule a cronjob every 15 minutes or so, that queries the
database for tasks to perform. That should do it. If cronjobs aren't
possible, you could trigger it on site visits. If you've got a popular page,
you don't want to trigger it verey time. Add a possibility you will trigger
the script. Possibility = 1 / (average visitors per interval)
Right, I'll go with the cron option as i know it fairly well - i'll
have a bash at working up a script that will check the database and
I'll also have a crack at site as a seperate entity. Thanks for the
pointers - cleared up my approach method, thanks very much.

James

Jul 18 '06 #3
I had some luck with this;
pseudo-cron v1.3
http://www.bitfolge.de/pseudocron-en.html

<co*********@hotmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
I'm looking at creating a website that basically saves times and dates
and emails specific people (all taken from a mysql database) when times
have passed. I suppose something like a birthday reminder site, but not
quite.

All I'd like to know is: Is this possible and how much of an
undertaking is it to get the emails out at specific times, instead of
run as a batch at fixed times from a linux cron script.

Cheers
J

Jul 18 '06 #4
Comcast-jraff wrote:
I had some luck with this;
pseudo-cron v1.3
http://www.bitfolge.de/pseudocron-en.html

Thanks for the pointer. For the moment i cant guarantee web traffic as
often as i'd have to guarantee job execution, although I could leave
the server refreshing the main page every few minutes - seems a bit of
a "crowbar" method. If my site gathers enough users i would definitely
cosider that option though, thanks! It will be a very narrow user-group
initially so i dont expect more than a few visits per day.

Thanks

Jul 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alan Cantor | last post by:
Still trying to figure this one out: I want to edit aspx files that do not have the .aspx extension. Is this possible while still getting the statement completion, text colorization and...
1
by: Tom | last post by:
Hello I am a newbie to VB .net 2003 environment. I have a database in sql server 2000 that was developed using vb. I would like to edit some of the .exe files that are used to collect and...
1
by: Angelos | last post by:
Hello, -I wrote a script that you use it to add products in the database. -Each product is associated with files. -In the Form to add the product you have to enter the product name in a textfield...
8
by: John A Grandy | last post by:
tools > options > debugging > edit and continue by default, the option "allow me to edit vb files while debugging" is checked for c#, but unchecked for vb.net .... ? does anyone know why...
2
by: moonliver | last post by:
You can edit the source files in cs, why cant we do it in vb.net? Or more specifically, how can I get visual studio to not lock the files during run time?
2
by: Oenone | last post by:
I am developing an assembly that can be used either by a Windows Forms application or from within an ASP.NET web site. When running within the Forms app, I can break into the code while it is...
0
by: Brett Romero | last post by:
I can edit XML files fine on my work machine but not the home machine. They are both running WinXP Pro with VS.NET 2005 final. On the home machine, content in an XML or XSL file is highlighted. ...
4
by: Bryce K. Nielsen | last post by:
I am *extremely* annoyed by this, but apparently in VS2005 you cannot edit any of your source files while the debugger is running. Why is that? Is there an option I can set that will let me do...
10
by: setar | last post by:
How can I edit an xml file which has 250MB? I tried to use UltraEdit, Visual Studio, Eclipse, Stylus Studio and XMLSpy editors but these programs can't read this file because it is too big. SmEdit...
2
by: George Hardy | last post by:
hi all, to anyone that has had difficulty getting edit-and-continue to work in thier project: I had a project that I converted from vs.net2003, but edit-and-continue would not work. So, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.