phpajaxjsonpcross-server

Cross-server ajax request


I've run into a situation where one of my company's clients is building a website with our service, but would like to include on our site the podcasts that get posted into a table dynamically generated on a page of their main business site.

I've done a bit with ajax before, I know one of the biggest hurdles is using ajax to access content on a site hosted on a different server. From my research I gather that JSONP is the best solution in a situation like this, but for argument's sake let's say I know nothing of how their server is configured (and have no realistic way to find out) and that I don't know much about JSON (which is true).

I probably shouldn't hope for a silver bullet in a situation like this, but can someone point me at least in the right direction?

Thanks!


Solution

  • You can use curl in situations like this.