NYCPHP Meetup

NYPHP.org

[nycphp-talk] fopen() problem

Adam Maccabee Trachtenberg adam at trachtenberg.com
Sun Mar 7 14:04:19 EST 2004


On Sun, 7 Mar 2004, charlie wang wrote:

> I used to have older version of php (4.1.2), fopen()
> and fread() were very smooth. Recently changed to
> 4.3.X. and comes this problem: fopen() some website,
> fread(), and then print(), only portion of the page
> could be presented, even tried my own site having same
> problem. I remember the new version has some problem
> for file handling, just can't find the info. Anyone
> can help please.

You may want to try using file_get_contents() instead of fread(). It's
more efficient and might solve the problem as a side effect.

-adam

-- 
adam at trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!



More information about the talk mailing list