Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8817241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:47:53+00:00 2026-06-14T04:47:53+00:00

Hoping someone with technical knowledge can answer these the questions for me: I’ve tried

  • 0

Hoping someone with technical knowledge can answer these the questions for me:

  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?

  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.

  3. Is the above all even necessary, when the data is passed over https and is salted and hashed server side anyway?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:47:55+00:00Added an answer on June 14, 2026 at 4:47 am

    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?

    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 : Handling JSON like a boss in PHP

    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.

    Not relevant as the above is possible.

    3 . Is the above all even necessary, when the data is passed over
    https and is salted and hashed server side anyway?

    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…

    You should understand that

    • 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.
    • 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.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hoping someone with a better knowledge of javascript can assist, I am wanting to
Hoping someone can shed some light on this. I have a PHP program which
I'm hoping someone can help me. I've got a specific Exception from COM that
Hoping someone can help with this. I have other VM's that dont have problems,
Im hoping someone can help me with a small problem! I have a php
Hoping someone can answer this one... Is it possible to load multiple JSON files
Hoping someone can provide an answer with this, although it's not 100% programming related.
Hoping someone can provide some mysql advice... I have 2 tables that look like
I'm hoping someone has seen this before because I can't for the life of
I was hoping someone could validate my assumptions before I recommend that my client

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.