|
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
Navigation:
[Reply to this message]
|