Returns no text and no errors (unless I use a server not on whitelist).Code:<html lang="en"> <head> <title>Document</title> </head> <body> <?php ini_set("display_errors","On"); error_reporting (E_ALL); $state = $_POST["state"]; $city = $_POST["city"]; //$url = "http://api.wunderground.com/api/0d0cf4a823e2a1f9/conditions/q/" . $state . "/" . $city . ".json"; //Just as a test... $url = "http://blog.altervista.org/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_SSLVERSION,3); $tmp = curl_exec($ch); echo curl_error($ch); echo $tmp; curl_close($ch); //$obj = json_decode($result); ?> <br> <?php echo $url; ?> </body> </html>
Also get no output using file_get_contents...

LinkBack URL
About LinkBacks
