Re: [PHP] file or fopen to fetch a web page???

2001-01-24 Thread Christian Reiniger
On Wednesday 24 January 2001 01:25, Richard Lynch wrote: > > I wonder myself, which method is better to fetch a web page: > > > >$file = fopen($url, "r"); > >$page = fread($file, 5); > > > > or > > > >$file = join('', file($url)); > > Probably about the same either way... Perhaps.

Re: [PHP] file or fopen to fetch a web page???

2001-01-23 Thread Richard Lynch
> I wonder myself, which method is better to fetch a web page: > >$file = fopen($url, "r"); >$page = fread($file, 5); > > or > >$file = join('', file($url)); Probably about the same either way... Maybe not building an array to build a string will save a little... You could test

[PHP] file or fopen to fetch a web page???

2001-01-23 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello, I wonder myself, which method is better to fetch a web page: $file = fopen($url, "r"); $page = fread($file, 5); or $file = join('', file($url)); , speaking from the performance point of view? (or is there any better?). Thanks. -- PHP General Mailing List (http://www.