home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

PHP / MySQL argument

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1634
Discussions: 200,957, Posts: 2,379,495, Members: 246,327
Old February 22nd, 2005, 01:06 AM   Digg it!   #1 (permalink)
Member
 
Join Date: May 2004
Posts: 184
Arrow
PHP / MySQL argument

My friend and I are having a little tiff on which method we should use to store information.

Here's the deal.
We're using PHP and MySQL to store information about articles... and our opinions diverge on what we should do next.

His Plan:
Store all the information (ID, Title, Author, Description, Content) inside the database and display information that way.

My Plan:
Store ID, Title, Author, and Description in database, but NOT Content and just have an external .xml file for the Content. The external file would just be included on the page with an include command (by the article ID)

We're using a backend program to edit these files... he's argues that it's faster to do it his way and "not pointless"... I say that it's slower because multiple users will be accessing the database at one time, but my way directs them to different files. Also, I think my way is safer.

Any opinions... or better alternatives?
VillageIdiot906 is offline   Reply With Quote
Old February 22nd, 2005, 01:22 AM     #2 (permalink)
Ultimate Member
 
mazdarx7-64's Avatar
 
Join Date: Aug 2004
Location: Knoxville, TN
Posts: 2,044
Both ways would be fine, IMO. If it is a crapy server (solw CPU and not much RAM) pulling the content from the database would be a tad slower, but as with most web servers the upload speed is more the deciding factor then the server hardware.
If the articles are long it would slow down the database some, and if you had say 50 people pulling at the same time it would suck, depending on server hardware. And with the articles in XML it would be somewhat easier to format the article to look however you want it to.
__________________
BSOD.........
The reason why I'll be drunk tonight.
Are you a winner?
mazdarx7-64 is offline   Reply With Quote
Old February 22nd, 2005, 09:15 PM     #3 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
I would say, hands down, that you should go with the PHP & full MySQL setup.

In pure logistecs... his plan has one call to the database.
Your plan has one call to the database (a few miliseconds faster, providing you are using optomized SQL code), and then you have alot of overhead opening the XML file, parseing it to display it, etc.

As far as formatting the articles go... just build a PHP admin section that will allow you to do that.


-Blaze
Blazer06 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
MYsql - Mandrake9.1 Crap_at_Lunix Applications and Operating Systems 0 October 10th, 2003 05:19 PM
I also need help with PHP e980238 Webmastering and Programming 4 April 15th, 2002 03:58 PM
PHPNuke? ChoaticWhisper Applications and Operating Systems 1 March 12th, 2002 10:35 PM
PHP/mySQL Puzzler DeafScribe Webmastering and Programming 10 January 12th, 2002 10:25 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2947)
The disrespect of Obama by Russian .. (41)
Making Health Care Worse (178)
Wireless Televisions. (12)
CPU fan stops spinning randomly (9)
Regular Build (11)
windows 7 problem (7)
Laptop with wireless problem. (5)
Is the PSU I received dead? (12)
Print spooler problem (15)
windows vista security holes (11)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Recent Discussions
Open With ..... Win7 (1)
Kingston Bluetooth Dongle Driver (0)
webcam (0)
upgrade for hp a6101 (0)
windows vista security holes (11)
Laptop with wireless problem. (5)
Modern Warfare 2: Who Bought It? (64)
tv not turn on-makes clicking sound (2)
CPU fan stops spinning randomly (9)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
Point and Shoot Camera Suggestions. (4)
Multiple Restarts Required at Boot (2)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Hp Artist Edition + Matching Bag (0)


All times are GMT -4. The time now is 07:19 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28