Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   HTML / XHTML / CSS (http://www.programmingforums.org/forum27.html)
-   -   text files auto imported into fields (http://www.programmingforums.org/showthread.php?t=14597)

Micskill Nov 26th, 2007 8:11 PM

text files auto imported into fields
 
Does anybody know of some software that can take a comma-delimmited text file and import it into a browser with blank fields?

example, a text file that has a list of someone's first name, last name, address, and phone number and put it on an existing website that has blank fields for the above information?

Sorry if this isn't the right forum for this question, I know it isn't exactly a programming question

Sane Nov 26th, 2007 10:24 PM

Re: text files auto imported into fields
 
You shouldn't need any software. It's a fairly simple task to do in any server-side scripting language. You can probably find snippets for it all around the Internet.

For example, in PHP... open the file with $my_string = file_get_contents("my_file.txt"), read it in line by line, then split each line into an array of fields with $fields = explode(",", $line), then display it however you feel.


All times are GMT -5. The time now is 3:29 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC