You are here: Need some help with an upload scirpt I've written « All PHP « IT news, forums, messages
Need some help with an upload scirpt I've written

Posted by gerg on 03/20/06 10:57

I've written an upload script that should do the following:

**************************************
This part works
**************************************

- Upload a .txt file.

- Read the information from the document into a variable. At the current
time, I'm using the file() function that does successfully read the
contents, line by line, into an array.

**************************************
This is what I need to make work
**************************************

- I am having trouble working with the array. I can use print_r() to
feed the array values, in the shape of:

Array ( [0] => another test [1] => [2] => [3] => this is another test!
[4] => [5] => It worked! )

I need this to be basically inserted into a database (which I can do
just fine). But I just want it in plain text format. For example, file
gets uploaded, data stripped, and tossed in a database, in the same
format as the .txt file. I don't want to store the text file persay,
just the data from the file. I'm on the verge of figuring this out, but
I don't know what function to use. Thanks in advance for any help.

Greg

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация