Re: [PHP] Re: getting HTML header from URL [solved]

2002-11-01 Thread Jule Slootbeek
yeah i just noticed that myself too, and unfortunatly people do code their html like that.. J On Friday, Nov 1, 2002, at 21:44 US/Eastern, David U. wrote: Jule Slootbeek wrote: oops didn't catch two little bugs Jule function getTitle($url) { $file = @fopen($url, 'r'); if(!$file) { $rline = "

[PHP] Re: getting HTML header from URL [solved]

2002-11-01 Thread David U.
Jule Slootbeek wrote: > oops didn't catch two little bugs > > Jule > > function getTitle($url) > { > $file = @fopen($url, 'r'); > > if(!$file) { > $rline = "Error, contact webmaster"; > } else { > while (!feof ($file)) { > $line = fgets($file); > if (substr_count(strtoupper("$line"), "") >= 1)