NYCPHP Meetup

NYPHP.org

[nycphp-talk] fopen() problem

charlie wang natrindex at yahoo.com
Mon Mar 8 09:21:59 EST 2004


Thanks. Adam:
THat works great.

Charlie


--- Adam Maccabee Trachtenberg <adam at trachtenberg.com>
wrote:
> 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!
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com



More information about the talk mailing list