0
如何使用curl更換PHP函數「文件」取代PHP函數「文件」?使用curl
$ego_quote = file($egoUrl); nicely put into an array.
$ego_quote[0] = error=OK
$ego_quote[1] = eta=Overnight
$ego_quote[2] = price=56.44
如何在使用CURL時實現此目的?
原因是其發揮作用的「file」不可用我們的生產服務器上相關,功能「的fopen」。
謝謝
捲曲將回到更類似於[的file_get_contents]東西(http://www.php.net/file_get_contents)。然後,您可以在換行爆炸,實現爲'file'同樣的效果 –