Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-17-2008, 12:36 PM   #1
Member (4 bit)
 
Join Date: Feb 2008
Posts: 14
PHP or XML?

Hey follks,

Just looking to figure something out here.I have a script that colects data and spits it out to a txt file. Now as you can imagine its not the easyest thing to read. Now what I would like to do is post the information in a table on a web page.

The thing I see giving my brain the workout is the fact that the data is not repopulating the old data it is just posting to the bottom of the txt file.( in essence making it way to huge to read or even look at.)

Now what I am wondering is if I would be best to use php or XML to make this happen and look right on a web page.

I guess the main thing I am wondering is if i redefine the output file to an XML file will it repopulate instead of writing to the bottom.

I'm at work and don't have everything i need to test this out so thats why I'm here if it doesn't and i need to look into other options I would like to do my homework at work if you can feel me.

Any help or suggestions to point me in the most logical direction is much appreciated.
Sophist is offline   Reply With Quote
Old 03-17-2008, 10:06 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
You may want to start thinking about a MySQL database.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 03-17-2008, 11:08 PM   #3
Security Dude
Staff
 
kstatefan40's Avatar
 
Join Date: Jun 2003
Location: Derby, Kansas
Posts: 999
Send a message via AIM to kstatefan40 Send a message via MSN to kstatefan40 Send a message via Yahoo to kstatefan40 Send a message via Skype™ to kstatefan40
Force hit that one on the head - insert the data into a SQL table, and then you can output rows into a table on the webpage.

I can post back tomorrow with the code and table structure... what kind of data are you collecting? Give me each peice of information and then I can help you with the specific coding.
__________________

Tyler A. Thompson
Small Business Networking Services Specialist
tyler@derbydigital.com
kstatefan40 is offline   Reply With Quote
Old 03-18-2008, 09:39 AM   #4
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Text files can be fairly difficult to manage. If you went the text file route you would be very limited in what you could display. You would first have to parse the text probably as space delimited which can be a bit problematic. Once you parsed it you wouldn't be able to choose what you display. You couldn't exclude columns or re-order them either. Plus once the session is over that text is no longer available. Pulling it out of a database gives you infinite options over pulling from a text file.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
podcasting php uploading question - long post tomster2300 Internet, Web Applications, & The Cloud 1 01-19-2008 07:38 PM
PHP and Web Servers simontompkins Web Design / Development 7 06-06-2005 10:55 PM
PHP on my system GraemeM Web Design / Development 2 06-06-2005 12:01 AM
Xml And Css Help Colb Web Design / Development 2 05-05-2003 05:17 PM


All times are GMT -5. The time now is 07:35 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2