相关疑难解决方法(0)

为什么file_get_contents适用于google.com但不适用于我的网站?

$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秒

php django get

8
推荐指数
1
解决办法
4770
查看次数

Laravel:通过 Guzzle 使用自定义 Passport 登录的解决方案

我正在尝试在控制器内部执行路由/api/user/signin ,以将 Guzzle HTTP post 发送到/oauth/token。很棒,但是服务器停顿了。我发现了这个:/sf/answers/3244527821/

那我该怎么办呢?如何在没有 HTTP 请求的情况下调用 /oauth/token?我可以“创建”一个请求类并传递给该函数吗?

laravel guzzle

3
推荐指数
1
解决办法
799
查看次数

标签 统计

django ×1

get ×1

guzzle ×1

laravel ×1

php ×1