allora, ho estrapolato dal CMS in cui era inserito lo spezzone di codice che non funge e inserito in un file a parte, che ho uploadato sul server
ecco la risposta del server quando lo lancio:
Warning: simplexml_load_file() [function.simplexml-load-file]: URL
file-access is disabled in the server configuration in
/home/............/network.php on line 10
Warning:
simplexml_load_file(http://services.k2-solutions.eu/aa_services/network.php)
[function.simplexml-load-file]: failed to open stream: no suitable wrapper
could be found in /home/.........../network.php on line 10
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning :
failed to load external entity
"http://services.k2-solutions.eu/aa_services/network.php" in
/home/............../network.php on line 10
la riga 10 è quella che tenta di aprire il file esterno:
$xml = simplexml_load_file('http://services.k2-solutions.eu/aa_services/network.php');
ma allora è un problema lato server? ci posso mettere una pezza io (che so, htaccess o altro) o devo per forza (hai voglia) contattare la società di hosting??

Rispondi quotando