Reply to Re: Need some help with an upload scirpt I've written

Your name:

Reply:


Posted by gerg on 03/20/06 13:55

Arjen wrote:
>> - 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.
>
>
>
> How bout
>
> file_get_contents($_FILES[myfile][tmp_name]);
>
> That way u allready have the text in a string wich makes it easier to
> modify and insert it into a db
>
> Arjen

The exact function I was looking for. I just finished the script and it
was working perfect with fopen, and fread, but that function is much
cleaner. Thanks for the help Arjen!

Greg

[Back to original 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

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