小编Kri*_*ury的帖子

PHP file_get_contents()不起作用

任何人都可以解释为什么以下代码返回警告:

<?php
  echo file_get_contents("http://google.com");
?>
Run Code Online (Sandbox Code Playgroud)

我收到警告:

Warning: file_get_contents(http://google.com): 
failed to open stream: No such file or directory on line 2
Run Code Online (Sandbox Code Playgroud)

请参阅键盘

php codepad

4
推荐指数
3
解决办法
4万
查看次数

标签 统计

codepad ×1

php ×1