Giter Club home page Giter Club logo

Comments (7)

andrewscofield avatar andrewscofield commented on June 10, 2024

Are you downloading the entire library also are you on the latest version?

from parse.com-php-library.

lucagianneschi avatar lucagianneschi commented on June 10, 2024

Yea, I downloaded the latest version of the library here from Github, I'm currently using easyphp and all the curl libraries are correctly running.. I just want to work remotely, without the needing to upload through FTP on my server... Maybe there a compatibility issue with Windows 8 and easyphp, anyone reported any bug for this stuff??

from parse.com-php-library.

lucagianneschi avatar lucagianneschi commented on June 10, 2024

Da wp avevo messo 4 classi ok? Classe e superclasse è solo una definizione Inter nos, perché tutte le classi sono uguali a livello di db e di codice, superclasse per me è un contenitore, infatti sia album foto che album brani hanno una property array dove ci vanno foto e brani. Quindi se ok per fare 2 album distinti è come avevo scritto nel wp. Non credo che stiamo dicendo 2 cose diverse, credo solo che non ci stiamo capendo. Per la data io direi che la data di creazione. Dell'oggetto è la data in cui si immette un brano o una foto e questo è createdAt, ma poi io metterei una data che è la data in cui l'utente ha fatto il brano o scattato la foto. Torna?

Luca

Il giorno 17/dic/2012, alle ore 13:59, StefanoJ [email protected] ha scritto:

Allora Lu, in pratica nel wp avevi definito la classe date automatica da
impostare al momento del caricamento del brano, quindi mi sembrava un
doppione, tant'è che nel form non l'avevamo messo...
Secondo io farei due superclassi una Media l'altra MediaCollection...
Non so se hai in mente bene la cosa delle superclassi, ma servono a tenere
logicamente connessi degli oggetti..ti faccio un esempio piuttosto concreto:

Media ha le var : autore, descrizione, titolo, path di allocazione che
devono essere messe per tutti i tipi di file (siano essi immagini o
canzoni) - quindi sono variabili comuni a tutti i Media... quindi media può
essere una superclasse... Infine Brano è una sottoclasse di Media che ha
variabili specifiche differenti da Immagine, come la durata. Io utilizzerei
questo approccio... ed era quello che avrei fatto oggi,così lo mostravo a
maria laura e se ne discuteva sulla bontà. ;)

2012/12/17 Luca [email protected]

Yea, I downloaded the latest version of the library here from Github, I'm
currently using easyphp and all the curl libraries are correctly running..
I just want to work remotely, without the needing to upload through FTP on
my server... Maybe there a compatibility issue with Windows 8 and easyphp,
anyone reported any bug for this stuff??


Reply to this email directly or view it on GitHubhttps://github.com//issues/57#issuecomment-11433449.


Reply to this email directly or view it on GitHub.

from parse.com-php-library.

joetech avatar joetech commented on June 10, 2024

I had a similar issue at line 178. The problem is that you're not getting a "200" response from your request, so it tries to throw an error. Then that line in the code is expecting $error (parsed json response) to be an object. Instead the response is "FALSE", so it bombs. I changed it to the following to work properly for errors, but you (me, too) still need to figure out why the query fails.

if ($response) { $this->throwError($error->error,$error->code); } else { $this->throwError($response,$responseCode); }

Additionally, my "response code 0" issue was resolved with this:
http://stackoverflow.com/questions/4570973/anything-wrong-with-my-curl-code-http-status-of-0

from parse.com-php-library.

andrewscofield avatar andrewscofield commented on June 10, 2024

I wasn't aware that parse.com api ever returned a "FALSE", I wonder if this is new? Or maybe its something PHP/curl is doing?

The reason I did it the way I did was to make it easier to figure out why a query was failing. While doing some testing I also found it to be helpful to uncomment line 103 and print the results to screen. Is this where you are getting "FALSE?

from parse.com-php-library.

joetech avatar joetech commented on June 10, 2024

Yes, but I believe it was a result of curl failing with ssh. The parseRestClient just doesn't seem to handle curl failure, I think.

from parse.com-php-library.

andrewscofield avatar andrewscofield commented on June 10, 2024

yea, I think you're right. I'll figure out some ways to test or curl and php compatibility and just throw some errors up front if the server can't handle the library. Maybe I'll find some ways around using curl? Doubt it.

from parse.com-php-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.