我有这个代码:
if ($this->serv == "shoutcast")
$sp_data = ereg_replace("^.*<SHOUTCASTSERVER", "<SHOUTCASTSERVER", $sp_data);
它给了我正常的错误:Deprecated: Function ereg_replace() is deprecated in
我替换为:
if ($this->serv == "shoutcast")
$sp_data = preg_replace("/^.*<SHOUTCASTSERVER/", "/<SHOUTCASTSERVER/", $sp_data);
现在没有错误,但它不能按预期工作:http: //img833.imageshack.us/img833/4409/8lck.png
处理错误:http: //img89.imageshack.us/img89/2669/6wft.png