在一个PHP系统增加信息时 只要编辑器里包含了<a> </a>超链接代码 就会提示下面这错误 然后链接代码就不见了 但是别的数据还是可以保存成功,请问这是杂回事?
错误提示
Warning: fread(): supplied argument is not a valid stream resource in F:\local 87\e\class\functions.php on line 765
765行内容是  function readfiletext ($filepath)
  {
    $filepath = trim ($filepath);
    $htmlfp = @fopen ($filepath, 'r');
    if (strstr ($filepath, '://'))
    {
      while($data=@fread($htmlfp,500000))
      {
        $string.= $data;
      }
    }
    else
    {
      $string=fread($htmlfp,@filesize($filepath));  ←765
    }    @fclose($htmlfp);
    return $string;
  }