2010-08-17 33 views
0

我解析网页的源代码是这样的:获取页面的源代码,并指派其内容

private function readPage() { 
     header("Content-type: text/plain"); 
     $this->pageSource = @readfile ($this->page);  
    } 

但它好像我不能指定内容到“pageSource “变量。我的错误在哪里?

非常感谢您的帮助。

回答

相关问题