RE: [PHP] Need eregi() help

From: Date: Fri, 01 Feb 2002 21:35:55 +0000
Subject: RE: [PHP] Need eregi() help
Groups: php.general 
Request: Send a blank email to php-general+get-83194@lists.php.net to get a copy of this message
What do you mean " it does not work"? What error do you get? Logic error? Compile error? -----Original Message----- From: Robby [mailto:robby_geek2002@cogeco.ca] Sent: Friday, February 01, 2002 3:28 PM To: php-general@lists.php.net Subject: [PHP] Need eregi() help I am using this code below but it does not work (php in installed and working proplely): <?php $file=fopen("http://somedomain/time.html", "r"); if (!$file) echo "error when connect\n"; exit; } $line = fread ($file, filesize ($file)); eregi("^{<font color=green><b>}{.*}{</b></font>}$", $line, $out) echo "$out[1]"; fclose($file); ?> Robby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#83194) next »