Posted by Lars Erik Bryld on 03/27/07 14:38
Scripsit Kimmo Laine:
>>>> $rest = fread($fi, 99999999999999999999);
>>>> fwrite($fo, $rest);
>>>>
>>>> fclose($fi);
>>>> fclose($fo);
>>
>> This is what I suspect is not doing what I thought it would.
>>
>
> Try this instead:
> while(!feof($fi) ){
> fwrite($fo, fread($fi, 256));
> }
Worked like a charm, thanks. Turned out that PHP balked at the
9999999999999 part.
--
Med venlig hilsen
Lars Erik Bryld
[Back to original message]
|