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.
> 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
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.
3 matches
Mail list logo