php - ParseSDK: Why file_get_contents() returns “failed to open stream: HTTP request failed!”? -


i having problem updating object in parse cloud db...

basically run code

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(); 

i this:

warning: file_get_contents(https://api.parse.com/1/classes/_user/bymcqe93lc): failed open stream: http request failed! http/1.1 400 bad request in /volumes/transcend/google drive/projects/applandr/lib/libraries/parse/parseclient.php on line 240

warning: invalid argument supplied foreach() in /volumes/transcend/google drive/projects/applandr/lib/libraries/parse/parseobject.php on line 528

i have made sure allow_url_fopen = on set, , have not tried curl parse class attempting contents of url.

$result = file_get_contents($url, false, $context); 

can please me, want update object in parse db.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -