Hallo,
ich habe vergeblich versucht meinen letzen Tweet anzuzeigen.
[code]<?php
if(!function_exists(‘simplexml_load_file’)) {
die(“Es ist ein Fehler aufgetreten. Dein Webspace untersützt kein ‘simplexml_load_file’”);
}
// Bitte anpassen
$username = 'PohSto';
$tweets = 5;
// Ab hier darf nichts geändert werden
$timeline = "http://twitter.com/statuses/user_timeline/".$username.".xml";
// Timeline einlesen
$twitter = simplexml_load_file($timeline);
// Status x - mal ausgeben
for($count = 0; $count < $tweets; $count++) {
echo utf8_decode($twitter->status[$count]->text);
echo "<br />";
}
?>[/code]
Diesen Code habe ich genutzt jedoch ohne Erfolg
Der Error lautet:
Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/**********/www/******/twitter/index.php on line 14
Warning: simplexml_load_file(http://twitter.com/statuses/user_timeline/PohSto.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /users/**********/www/******/twitter/index.php on line 14
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://twitter.com/statuses/user_timeline/PohSto.xml" in /users/**********/www/******/twitter/index.php on line 14
Für eine hilfreiche Antwort wäre ich dankbar!
Danke im Vorraus!
Gruesse,
Pohyal S.