What do you mean " it does not work"?  What error do you get?  Logic error?
Compile error?

-----Original Message-----
From: Robby [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:28 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to