1

I was wondering if it's possible for a PHP-based proxy to handle AJAX data. I'm trying to make one or use a ready-made script.

Thanks!

1
  • Could you elaborate a bit more with an example? Commented Jan 14, 2011 at 13:32

3 Answers 3

2

Yes.

Your client-side javascript can make an AJAX request to a same-domain server side script (e.g. PHP in this example), the PHP script could then make a request to a third-party url, process it however, and then return the result to the original client-side javascript.

If you can provide some additional detail, I, or someone else, may be able to provide a more concrete solution/explanation.

EDIT: See http://developer.yahoo.com/javascript/howto-proxy.html for an excellent explanation of the process.

Sign up to request clarification or add additional context in comments.

Comments

1

AJAX Request using PHP as a proxy

Comments

-1

AJAX data isn't different from any other kind.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.