Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Click Here
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:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old March 10th, 2004, 10:14 AM
phpfish phpfish is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: London, UK
Posts: 131 phpfish User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
database driven websites. Discuss

I am going to change my site so that it is database driven. I'm not sure how far to take it. How much of it should be database driven?

I was planning to make it 100% so that every link, image files, meta tags, page titles etc are all stored in the database. Is this wise or practical?

Reply With Quote
  #2  
Old March 10th, 2004, 11:22 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: database driven websites. Discuss

Well, it really depends on a lot of things.

The first is the content of your site, some sites fit better to databases (e.g. shops), some don't (designer sites).

The second thing to consider is performance. Every query takes some time and if you need 190 queries to produce a single page, you'll have a very unhappy server. I'd seriously advise against storing images in the db - an average page has from 10-50 images on it, so you'll have as many calls to the PHP executor, as many queries, and the image data will first have to be read from disk to dbase, from dbase to php, from php to php once or twice, and finally from php to web server. Obviously this isn't a very efficient way to do it.

Third is practicality. For every thing you'll have in the dbase, you'll need to code an admin tool, and use it. If you have every little thing in the dbase, you need to spend a lot of time editing it (assuming your site changes often enough) and sometimes it's just faster/easier to simply edit the relevant .php file.

Reply With Quote
  #3  
Old March 10th, 2004, 11:30 AM
dacool dacool is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Bulgaria
Posts: 26 dacool User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to dacool
RE: database driven websites. Discuss

store the content that changes often, the content that have much in common.. what is your site about? give more detailed description or url.. you can store image refs or image files in DB if you have a site for free greeting cards for example.. to store everything in DB make sense if you have templates in which you show that content, if you want to perform searches, sorting etc.. if you think that this will make your life easier make database driven website ;)

Reply With Quote
  #4  
Old March 10th, 2004, 11:45 AM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,935 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 1 h 52 m 57 sec
Reputation Power: 3
Orkut
RE: database driven websites. Discuss

Storing page titles in a database is a bad idea in my opinion. Unless the title changes frequently. What i would do to form page titles is get the name of the page file and remove the extension but this relies on the file having the same name as the page. Also like said above storing many images in a DB will dramatically slow down your server/site so its a bad idea however you could store a link to an image in the db and it wouldnt be a problem.

Reply With Quote
  #5  
Old March 10th, 2004, 12:44 PM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Programming Theory' by CodeKadiya.

Reason: Not coding help! Thoery..

Reply With Quote
  #6  
Old March 10th, 2004, 03:37 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: database driven websites. Discuss

My intention is to store a reference to image files rather than the file itself. Will this effect performance?

The site is a 'shop' so product prices etc change frequently.

My concern is how a site, 100% database driven will effect search engines listings? If the pages are dynamically created, therefore do not exist on the server, how will the robots find them when they come a visiting?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > database driven websites. Discuss


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway