Salve! Ho un problema con una pagina... viene caricata correttamente circa 4 volte su 10. Qui potete trovare un esempio, ovviamente se vedete la pagina bianca, ricaricate finché non compare qualcosa.

Questo è il codice sorgente della pagina in questione:
Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>


<HEAD>
 <?php require_once("twitterreader.php"); ?>
 <META content="text/html; charset=windows-1252" http-equiv=Content-Type>
 <style type="text/css">

        <!--

        body {background:#fff;margin:0;padding:0;font-size:75%;font-family: lucida Grande, Helvetica, Arial, sans-serif;color:#333;}

        ul.twitter {margin:0;padding:0;}

        ul.twitter li {list-style:none;padding:10px 0px;border-bottom:1px solid #e7e7e7;}

        ul.twitter a {color:#777;text-decoration:none;}

        ul.twitter a:hover {color:#333;text-decoration:underline;}

        small {color:#888;}

        -->

        </style>
</HEAD>
<BODY>                    


<?php



// Run the function, with your twitter username and number of tweets as arguments
$mytweets fetch_tweets('C__Lac'4);

echo 
'<ul class="twitter">';
foreach (
$mytweets as $k => $v) {
     echo 
'[*]';
     echo 
'<span class="twitter">' .$v['desc']. '</span>';
     echo 
'
'
;
     echo 
'[size="1"]<span class="twitter">' .$v['date']. '</span>[/size]';
     echo 
'';
}
echo 
'[/list]';
?>

</BODY></HTML>
E questa è la pagina che viene richiamata nella prima:

Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY>                    
<?php

function fetch_tweets($username$maxtweets) {
     
//Using simplexml to load URL
     
$tweets simplexml_load_file("http://twitter.com/statuses/user_timeline/" $username ".rss");

     
$tweet_array = array();  //Initialize empty array to store tweets
     
foreach ( $tweets->channel->item as $tweet ) {
          
//Loop to limitate nr of tweets.
          
if ($maxtweets == 0) {
               break;
          } else {
               
$twit $tweet->description;  //Fetch the tweet itself

               //Remove the preceding 'username: '
               
$twit substr(strstr($twit': '), 2strlen($twit));

               
// Convert URLs into hyperlinks
               
$twit preg_replace("/(http:\/\/)(.*?)\/([\w\.\/\&\=\?\-\,\:\;\#\_\~\%\+]*)/""<a href=\"\\0\">\\0</a>"$twit);

               
// Convert usernames (@) into links
               
$twit preg_replace("(@([a-zA-Z0-9\_]+))""<a href=\"http://www.twitter.com/\\1\">\\0</a>"$twit);

               
// Convert hash tags (#) to links
               
$twit preg_replace('/(^|\s)#(\w+)/''\1[url="http://search.twitter.com/search?q=%23\2"]#\2[/url]'$twit);

               
//Specifically for non-English tweets, converts UTF-8 into ISO-8859-1
               
$twit iconv("UTF-8""ISO-8859-1//TRANSLIT"$twit);

               
//Get the date it was posted
               
$pubdate strtotime($tweet->pubDate);
               
$propertime gmdate('F jS Y, H:i'$pubdate);  //Customize this to your liking

               //Store tweet and time into the array
               
$tweet_item = array(
                     
'desc' => $twit,
                     
'date' => $propertime,
               );
               
array_push($tweet_array$tweet_item);

               
$maxtweets--;
          }
     }
     
//Return array
     
return $tweet_array;
}
?>



</BODY></HTML>
Ho davvero scarse conoscenze di programmazione in PHP, lo script non l'ho creato io, ma l'ho trovato su internet.