$page1 = file_get_contents('http://www.google.com');
$page2 = file_get_contents('http://localhost:8000/prueba');
Run Code Online (Sandbox Code Playgroud)
当我回应结果时,谷歌它可以工作,但不适用于我的网站.当我把地址放在资源管理器上时.这发生在我在django制作的所有网站上.:(
警告:file_get_contents(http://localhost:8000/prueba)[function.file-get-contents]:无法打开流:连接尝试失败,因为连接方在一段时间后没有正确响应,或者由于连接主机无法响应而建立连接失败.在第138行的C:\ xampp\htdocs\squirrelmail\plugins\captcha\backends\b2evo\b2evo.php中
致命错误:第138行的C:\ xampp\htdocs\squirrelmail\plugins\captcha\backends\b2evo\b2evo.php超出最长执行时间60秒
我正在尝试在控制器内部执行路由/api/user/signin ,以将 Guzzle HTTP post 发送到/oauth/token。很棒,但是服务器停顿了。我发现了这个:/sf/answers/3244527821/
那我该怎么办呢?如何在没有 HTTP 请求的情况下调用 /oauth/token?我可以“创建”一个请求类并传递给该函数吗?