proxy.php
<?php
$url = "http://external-site.com/service.php?action=list"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec ($ch); curl_close ($ch); echo $result;
?>
Related Links
-
jQuery’s JSONP Explained with Examples
-
Get selected json value by key using jQuery and jsonp