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 6181041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:57:03+00:00 2026-05-24T00:57:03+00:00

When using PHP I can use file_get_contents or cURL to get a URL. jQuery

  • 0

When using PHP I can use file_get_contents or cURL to get a URL.

jQuery runs on the client

In jQuery there is a function called jQuery.getJSON(). Javascript is run on the client. What server is used for the download of the JSON code of the external URL? What information does the called URL know about? Does it know of the domain? The IP of the client user? It’s a client language.

Prefered for many request

To make many requests, is it safer to do this with Javascript than PHP because it runs on the every client instead of one server point?

  • 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-05-24T00:57:04+00:00Added an answer on May 24, 2026 at 12:57 am

    What server is used for the download of the JSON code of the external URL?

    The one that the domain name in the URL passed to that function resolves to.

    What information does the called URL know about?

    It is an HTTP request, like any other. The usual information will be available.

    Does it know of the domain? The IP of the client user?

    Of course.

    It’s a client language.

    … making an HTTP request.

    To make many requests, is it safer to do this with Javascript than PHP because it runs on the every client instead of one server point?

    You control the server. You don’t control the client. JavaScript can be disabled. It is safer to make the request from your server.

    (For a value of “safe” equal to “Less likely to fail assuming the service you are using doesn’t impose rate limiting”)

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

Sidebar

Related Questions

How can I detect, using php, if the machine has oracle (oci8 and/or pdo_oci)
How can I open a web-page and receive its cookies using PHP? The motivation
using register_shutdown_function I can register code to execute at the end of a PHP
Been using PHP/MySQL for a little while now, and I'm wondering if there are
My code is using file_get_contents() to make GET requests to an API endpoint. It
I am in a situation where I cannot use PHP cURL module to POST
I have to download big file (1xx MB) using PHP. How can i download
i have been trying to get the source of a page in php using
Using PHP, what's the fastest way to convert a string like this: 123 to
Using PHP and MySQL, I have a forum system I'm trying to build. What

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.