I need to get data from a web page generated by mrtg in my page....

i have come up with the following code

        $file = "/virt/usaexpress/www/noc/mrtg/";

     $string = implode("\n", file($file));
     $string1 = explode("<META HTTP-EQUIV=\"Content-Type\" 
CONTENT=\"text/html; charset=iso-8859-1\">", $string);
        $string2 = explode("</HEAD>", $string1[1]);
        $stat = eregi("<!--(.*)-->",$string2[0]);

        echo $stat;
        //while (list ($key, $val) = each ($string3)) {
     //echo "$key => $val<br>";


however - I get a "1" when look on the php site - under manual...

any ideas?


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