- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
- Parse error: syntax error, unexpected '}' in /in/U1Zvb on line 47
Process exited with code 255.
<?php
$xml = new SimpleXMLElement(
'<catalogo>
<server>
<nome>ltw1319</nome>
<convenzione>comprato</convenzione>
<interoperabilita>Aggregato</interoperabilita>
<url>http://ltw1319.web.cs.unibo.it/richieste</url>
</server>
<server>
<nome>ltw1330</nome>
<convenzione>comprato</convenzione>
<interoperabilita>Aggregato</interoperabilita>
<url>http://ltw1330.web.cs.unibo.it/richieste</url>
</server>
<server>
<nome>ltw1336</nome>
<convenzione>comprato</convenzione>
<interoperabilita>Aggregato</interoperabilita>
<url>http://ltw1336.web.cs.unibo.it/richieste</url>
</server>
<server>
<nome>ltw1311</nome>
<convenzione>Integrato</convenzione>
<interoperabilita>Aggregato</interoperabilita>
<url>http://ltw1311.web.cs.unibo.it/richieste</url>
</server>
</catalogo>
');
$ulrscomprati = array();
$xml = simplexml_load_file('server.xml');
$item = $xml->server;
$count=0;
foreach($item as $dati){
$ur=$dati->url;
if($ur != ""){
$ulrscomprati[$count]=$ur;
}
$count=$count+1;
}
echo $ulrscomprati[$count];
$result_from_server = json_encode($ulrscomprati,$data );
}