Hi,
Ich versuche über ein PHP Script mit CURL auf einen Webservice von Last.fm zuzugreifen.
Mein Script ist:
	
Als Ausgabe bekomme ich allerdings:
recentlyPlayedSongs =
error = Failed to connect to 87.117.229.100: Permission denied
CURL ist allerdings aktiviert - siehe http://altes-kind.de/phpinfo.php .
Wer kann mir helfen?
Vielen Dank im Voraus,
altes-kind
					Ich versuche über ein PHP Script mit CURL auf einen Webservice von Last.fm zuzugreifen.
Mein Script ist:
PHP Code:
	
	
<?php
 $ch = curl_init();
 $timeout = 5;
 curl_setopt ($ch, CURLOPT_URL, 'http://ws.audioscrobbler.com/1.0/user/altes-kind/recenttracks.xml');
 curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
 $recentlyPlayedSongs = curl_exec($ch);
 $error = curl_error ($ch);
 curl_close($ch);
 echo("recentlyPlayedSongs = $recentlyPlayedSongs <br />error = $error");
?>
recentlyPlayedSongs =
error = Failed to connect to 87.117.229.100: Permission denied
CURL ist allerdings aktiviert - siehe http://altes-kind.de/phpinfo.php .
Wer kann mir helfen?
Vielen Dank im Voraus,
altes-kind
 
          
Comment