Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old December 31st, 2003, 04:59 PM
rflum rflum is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rochester, New York, USA
Posts: 3 rflum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Application architecture

Hi, I'm new to this site and to php. As a get-my-feet-wet project, I'm writing a site-based calendar. I would like to allow users to put personal events in the calendar, then get emailed reminders.
Here's my question: can I store users' data on their PCs instead of mine, so I don't need to load up my server? Is this even a good idea, architecturally?
Can the data be stored in a text file, so they don't need to install database software? Does this design mean they have to install a client-side app (mine) to handle data-handling?
.... etc, etc..... thanks, Rob

Reply With Quote
  #2  
Old December 31st, 2003, 05:25 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 4
RE: Application architecture

The only way to store data on the client's computer (at least without using Java or Javascript and dealing with permissions and just confusing to most people) is to use cookies. Search the forums or read PHP.net's cookie page.

As far as if that's a good idea or not: yes and no.

Reasons it's not good:
1. Storing a lot of information in cookies probably isn't a good idea because it's slow (all that data has to be sent to the server on each HTTP request)
2. It means that the person can only access their information from their computer - although that makes it more secure
3. The server only has access to the data when the person is browsing the site, which will make email reminders difficult to send.

Reasons it's good:
1. You don't need to be as responsible for keeping the data secure.
2. People can't use up your server space with useless data.

I'm sure there are other reasons on both sides, but I'd suggest you use a database like MySQl instead.

Reply With Quote
  #3  
Old December 31st, 2003, 05:31 PM
rflum rflum is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rochester, New York, USA
Posts: 3 rflum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Application architecture

Thank you! Especially for the pro/con explanations. I don't know how the whole client-server conversation works, and your pro/con stuff illuminated that a little for me.
Got a recommend for a resource (book, site) for these kinds of questions? Rob

Reply With Quote
  #4  
Old December 31st, 2003, 05:53 PM
rflum rflum is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rochester, New York, USA
Posts: 3 rflum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Application architecture

So, honcho,
When you say use MySQL, you mean a server-side database, right? This calendar would go on an ISP site with potentially thousands of customers. Any idea how big a db would be with say, 50,000 entries? And what kind of processing power it would require to handle pulling data for requests? Does this seem like a light-weight app, or something that would detract from the higher-priority tasks?
Rob

Reply With Quote
  #5  
Old January 1st, 2004, 12:24 AM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 4
RE: Application architecture

For a pretty good overview (not too technical, but more detailed than your average newspaper), look at http://www.howstuffworks.com.
Cookies: http://computer.howstuffworks.com/cookie.htm
Web servers: http://computer.howstuffworks.com/web-server.htm

For a much more detailed view, try http://www.w3.org/Protocols/

Quote:
When you say use MySQL, you mean a server-side database, right?

Yes. See http://www.mysql.com.

Quote:
This calendar would go on an ISP site with potentially thousands of customers. Any idea how big a db would be with say, 50,000 entries? And what kind of processing power it would require to handle pulling data for requests? Does this seem like a light-weight app, or something that would detract from the higher-priority tasks?


I don't have any hard numbers to reference, but you should be able to find something useful about this on MySQL.com. I really doubt any calendar you create for an average ISP and its customers would be overly complicated and require all that much processing (i.e., you won't need to do any really complicated or processor intensive queries). If the ISP can handle thousands of people hitting it's website, it should have no trouble handling a comparable database load.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Application architecture


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek