Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
Axios | Ajax | Fetch async-await JS | XMLHttpRequest | Which are the best working with PHP?

There are various options:

  • Axios
  • Ajax
  • Fetch
  • XMLHttpRequest

I understand they are all used to fetch data without refreshing the page, but I am confused about which would be better to work with PHP?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Underneath they are all the same technology. Those are just different interfaces to doing the same thing - making an asynchronous HTTP request to the server without refreshing the page.

PHP doesn't know - and doesn't care - which one you use to make your request. All it knows is that a request arrived. How it was generated is not something which matters to it.

That's the beauty of protocols such as HTTP - as long as both client and server understand the protocol, they don't need to care how each other is actually implemented.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!