Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>1 . I've tried before, and I'm led to believe that php classes cannot be used in a jQuery Ajax call. Is this true, Or is there a way of making it work?</p> </blockquote> <p>False. Many many people use PHP pages to answer ajax requests. in fact any server-side technologies able to answer an HTTP request can be used to provide AJAX content, usually in JSON or XML. Her's the first hit Google gave me : <a href="http://nitschinger.at/Handling-JSON-like-a-boss-in-PHP" rel="nofollow">Handling JSON like a boss in PHP</a></p> <blockquote> <p>2 . If the above is not possible, is there any way of using protected/private functions and variables without classes? Again, I believe this isn't possible, but would love to be proved wrong.</p> </blockquote> <p>Not relevant as the above is possible.</p> <blockquote> <p>3 . Is the above all even necessary, when the data is passed over https and is salted and hashed server side anyway?</p> </blockquote> <p>I'm not sure of your exact meaning but AJAX over HTTPS provides authentication and secrecy. Provided your solution is correctly configured, which is very very rare...</p> <p>You should understand that </p> <ul> <li>the essence of AJAX is answering (usually in JSON) javascript made requests made over HTTP just like your usual html page, and PHP can very well do that.</li> <li>PHP objects may be serialized as JSOn for the browser but the PHP code doesn't leave the server. Your private or public functions are all safe : nobody will see the implementation. But I hope your business or security doesn't really rely on this code not leaking. Regarding the client side javascript code needed to handle the logic of the objects, it can't be protected : if a browser can read it, a human can do it too.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload