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. In an earlier

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 it