<?php
session_start(); echo "<meta http-equiv='refresh' content='10; $var2[$a]'>";
$X="X";
?>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" media="screen" href="css/reset.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
<link href='http://fonts.googleapis.com/css?family=Quicksand' rel='stylesheet' type='text/css' />
<link href='http://fonts.googleapis.com/css?family=Playfair+Display' rel='stylesheet' type='text/css' />
<link rel="stylesheet" type="text/css" media="screen" href="css/grid_12.css" />
<link href='http://fonts.googleapis.com/css?family=Mr+De+Haviland' rel='stylesheet' type='text/css' />
<link rel="stylesheet" type="text/css" media="screen" href="css/slider.css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/tabs.js"></script>
<link href='http://fonts.googleapis.com/css?family=Condiment' rel='stylesheet' type='text/css' />
<link href='http://fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css' />
<script src="js/jquery-1.7.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/tms-0.4.x.js"></script>
<!--[if lt IE 8]>
<div style=' clear: both; text-align:center; position: relative;'>
<a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
<img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
</a>
</div>
<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="css/ie.css">
<![endif]-->
</head>
<!numeri e roba varia">
<div class="iframess">
<?php
$nomefile="numeri.txt";
$apro=fopen($nomefile,"r");
$leggo=fread($apro,filesize($nomefile));
fclose($apro);
$var2=file("numeri.txt");//estraggo l'array dal file .txt
@fclose($var);//chiudo il file .txt
$i=count($var2);//conto gli elementi nell'array
for($a=0; $a<=$i; $a++){//uso il ciclo for per guardare nell'array
//echo $var2[$a];//scrivo tutti gli elementi dell'array, ma potevo eseguire qualunque altra operazione con le variabili!!!
switch ($var2[$a]) {
case $var2[$a]=0:
$var2[$a]=0;
$X=$var2[$a];
echo $X;
break;
case $var2[$a]=1:
echo "1";
break;
case $var2[$a]=2:
echo "2";
break;
case $var2[$a]=22:
echo "22";
break;
}
}
//}//fine ciclo for
?>
</body>
</html>