[Ayuda] Problemas con HTTP_GET
#3

Sн, aquн va mi cуdigo PHP:

PHP код:
<?php
$lugar 
$_GET['lugar'];
$xml simplexml_load_file ('http://www.******.com/ig/api?weather='.$lugar.'');
$information $xml->xpath("/xml_api_reply/weather/forecast_information");
$current $xml->xpath("/xml_api_reply/weather/current_conditions");
$forecast_list $xml->xpath("/xml_api_reply/weather/forecast_conditions");
?>
<?php 
//echo $current[0]->condition['data'];
if($current[0]->condition[data] == "Clear"){ echo '0'; }
elseif(
$current[0]->condition[data] == ""){ }
elseif(
$current[0]->condition[data] == ""){ }
elseif(
$current[0]->condition[data] == ""){ }
else{ echo 
'0'; }
?>
EDITO: Era el antivirus que me bloqueaba el acceso a la pбgina mediante el servidor (Avast Antivirus) Tema Solucionado

Gracias de todas formas
Reply


Messages In This Thread
[Ayuda] Problemas con HTTP_GET - by Hircine - 20.08.2012, 23:27
Respuesta: [Ayuda] Problemas con HTTP_GET - by TheChaoz - 21.08.2012, 02:36
Respuesta: [Solucionado] Problemas con HTTP_GET - by Hircine - 21.08.2012, 08:50

Forum Jump:


Users browsing this thread: 1 Guest(s)