Php ParseSDK:为什么文件_get_contents()返回“;无法打开流:HTTP请求失败”;?
我在更新解析云数据库中的对象时遇到问题 基本上我运行代码Php ParseSDK:为什么文件_get_contents()返回“;无法打开流:HTTP请求失败”;?,php,database,curl,parse-platform,file-get-contents,Php,Database,Curl,Parse Platform,File Get Contents,我在更新解析云数据库中的对象时遇到问题 基本上我运行代码 include_once '../lib/libraries/Parse/autoload.php'; use Parse\ParseClient; use Parse\ParseQuery; use Parse\ParseObject; ParseClient::initialize('xxx', 'xxx', 'xxx'); $query = new ParseQuery("_User"); $query->e
include_once '../lib/libraries/Parse/autoload.php';
use Parse\ParseClient;
use Parse\ParseQuery;
use Parse\ParseObject;
ParseClient::initialize('xxx', 'xxx', 'xxx');
$query = new ParseQuery("_User");
$query->equalTo("username", $_COOKIE["username"]);
$user = $query->first();
$user->set("plan", "entrepreneur");
$user->save();
然后我得到这个:
警告:
文件获取内容():
无法打开流:HTTP请求失败!HTTP/1.1400错误请求
在/Volumes/extend/Google中
Drive/Projects/Applandr/lib/libraries/Parse/ParseClient.php联机
240
警告:中为foreach()提供的参数无效
/卷/超越/谷歌
在线驱动/Projects/Applandr/lib/libraries/Parse/ParseObject.php
528
我已经确保设置了allow\u url\u fopen=On
,并且没有尝试cURL,因为它实际上是一个试图获取url内容的解析类
$result = file_get_contents($url, false, $context);
有人能帮我一下吗,我只想在我的Parse数据库中更新一个对象