Twilo: [PHP5] file_get_contents mit allow_url_fopen=Off

Beitrag lesen

Hallo,

kann mir eienr sagen, warum das nicht funktioniert?

$url = 'http://www.xxx.de/yyy.rdf';  
$context = stream_context_create(  
  array('http'=>  
    array(  
      'method'=> 'GET',  
    )  
  )  
);  
$xml = simplexml_load_string(file_get_contents($url, false, $context));

Ich erhalte folgende Fehlermeldung

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/xxx/www.xxx.de/index.php on line 52

Warning: file_get_contents(http://www.xxx.de/yyy.rdf) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/xxx/www.xxx.de/index.php on line 52

Zeile 52: $xml = simplexml_load_string(file_get_contents($url, false, $context));

Ich bin über jede Denkhilfe dankbar ;-)

mfg
Twilo