Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require '../autoload.php';
- use ParseParseObject;
- use ParseParseClient;
- ParseClient::initialize( "Zsr...", "BzM..", "D..." );
- $gameScore = new ParseObject("GameScore");
- $gameScore->set("score", 1337);
- $gameScore->set("playerName", "Sean Plott");
- $gameScore->set("cheatMode", false);
- try {
- $gameScore->save();
- echo 'New object created with objectId: ' . $gameScore->getObjectId();
- } catch (ParseException $ex) {
- // Execute any logic that should take place if the save fails.
- // error is a ParseException object with an error code and message.
- echo 'Failed to create new object, with error message: ' + $ex->getMessage();
- }
- ?>
- Fatal error: Uncaught exception 'ParseParseException' with message 'SSL certificate problem: unable to get local issuer certificate' in /opt/lampp/htdocs/parse/src/Parse/ParseClient.php:250 Stack trace: #0 /opt/lampp/htdocs/parse/src/Parse/ParseObject.php(925): ParseParseClient::_request('POST', '/1/classes/Game...', NULL, '{"score":1337,"...', false) #1 /opt/lampp/htdocs/parse/src/Parse/ParseObject.php(836): ParseParseObject::deepSave(Object(ParseParseObject), false) #2 /opt/lampp/htdocs/parse/src/hola.php(11): ParseParseObject->save() #3 {main} thrown in /opt/lampp/htdocs/parse/src/Parse/ParseClient.php on line 250
- curl_init();
- curl_setopt($rest, CURLOPT_SSL_VERIFYPEER, false);
Add Comment
Please, Sign In to add comment