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

  • Home
  • SEARCH
  • 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 7800845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:46:01+00:00 2026-06-02T00:46:01+00:00

I begin with an object-oriented programming in php. I want to do the logging

  • 0

I begin with an object-oriented programming in php.

I want to do the logging – using ajax and jquery.

EDIT: Can I call the function ajax from file jquery.php – using jquery AJAX?

//FILE jquery.php

class jquery {

    public function ajax() {

    echo "result";      

    }
}
  • 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-02T00:46:03+00:00Added an answer on June 2, 2026 at 12:46 am

    If you make an ajax call similar to this :

    http://example.com/ajax.php?firstParam=1

    Within your ajax.php file you can do something like this :

    switch($_GET['firstParam']){
     case "1":
      callYourFunction();
     break;
     case "2":
      someOtherFunction();
     break;
    }
    

    This is a very stripped down example… In a real world case you would have to take security into account and sanitize any information you are getting from outside your server (i.e. from a user).

    The names I have given are only place holders – you can change the function/variable names to whatever you feel comfortable with.

    I hope this sheds some light on your conundrum.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my developments I am slowly moving from an object-oriented approach to interface-based-programming approach.
I'm a PHP developer, and I use the MVC pattern and object-oriented code. I
I've got a Stream object and I am using BeginRead to begin reading (obviously)
From the JCR specification I know that I can request an UserTransaction object (specified
It's my understanding that all .NET object instances begin with an 8 byte 'object
To begin i read all resources from xml in my MergedDictionaries and now I
I'm about to begin work on my first ever PHP project -- building a
Using Bullet 2.76 I'm trying to freeze an object (rigid body) so that it
I have an object that looks like: var object = [ {begin:0, end:20}, {begin:30,
So I'm trying to implement an Aspect-Oriented Design into my architecture using debug_backtrace and

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.