21.08.2012, 08:50 
	(
 Последний раз редактировалось Hircine; 03.03.2013 в 14:42.
)
	
	
		Sн, aquн va mi cуdigo PHP:
EDITO: Era el antivirus que me bloqueaba el acceso a la pбgina mediante el servidor (Avast Antivirus) Tema Solucionado
Gracias de todas formas
	
	
	
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'; }
?>
Gracias de todas formas


