das ist mein problem
Parse error: parse error, unexpected $end in c:\program files\easyphp1-7\www\david\tes.php on line 73
hier ist der script
<?
// The location of the pagefile.sys. Windowsdefault is c:\
//$pagefile[] = "\\\pcci03\c$\pagefile.sys";
$pagefile[0] = "\\\pcci03\c$\pagefile.sys";
$pagefile[1] = "\\\pcci04\c$\pagefile.sys";
// send the header of the page to the browser and begin the body
// echo "$CSS<title>Sysinfo for $HTTP_SERVER_VARS[SERVER_NAME]</title></HEAD><BODY class=body>";
for ($i=10; $i=10; $i++)
{
// Begin the first page with the general info ( just gather the info )
//uptime
$uptime = (time() - filemtime($pagefile[$i]));
$weeks = floor($uptime / (7*(24*3600)) );
$uptime = $uptime - ($weeks * (7*(24*3600)));
$days = floor($uptime / (24*3600));
$uptime = $uptime - ($days * (24*3600));
$hours = floor($uptime / (3600));
$uptime = $uptime - ($hours * (3600));
$minutes = floor($uptime /(60));
$uptime = $uptime - ($minutes * 60);
$seconds = $uptime;
if (!eregi("[0-9]{2}", $seconds)){
$seconds = "0".$seconds;
}
if (!eregi("[0-9]{2}", $minutes)){
$minutes = "0".$minutes;
}
if (!eregi("[0-9]{2}", $hours)){
$hours = "0".$hours;
}
if($weeks == 1){
$weeks = $weeks ." ".'week';
}elseif($weeks == 0){
$weeks="";
}else{
$weeks = $weeks ." ".'weeks';
}
if($days == 1){
$days = $days ." ".'day';
}elseif($days == 0){
$days="";
}else{
$days = $days ." ".'days';
}
if($hours == 1){
$hours = $hours ." ".'hour';
}else{ $hours = $hours ." ".'hours';
}
if($minutes == 1){
$minutes = $minutes ." ".'minute';
}else{ $minutes = $minutes ." ".'minutes';
}
if($seconds == 1){
$seconds = $seconds ." ".'second';
}else{ $seconds = $seconds ." ".'seconds';
}
$theuptime = " ".$weeks." ".$days." ".$hours." ".$minutes." ".$seconds." ";
//generate the general first html page and send it to the browser
echo"<center><table><td valign=top>";
echo"<table>";
echo"<tr><td>System uptime ".substr($pagefile[$i], 2, 6)." :</td><td><span class=generatedinfo>".$theuptime."</span></td></tr></table></table><br>;
}
?>
Parse error: parse error, unexpected $end in c:\program files\easyphp1-7\www\david\tes.php on line 73
hier ist der script
<?
// The location of the pagefile.sys. Windowsdefault is c:\
//$pagefile[] = "\\\pcci03\c$\pagefile.sys";
$pagefile[0] = "\\\pcci03\c$\pagefile.sys";
$pagefile[1] = "\\\pcci04\c$\pagefile.sys";
// send the header of the page to the browser and begin the body
// echo "$CSS<title>Sysinfo for $HTTP_SERVER_VARS[SERVER_NAME]</title></HEAD><BODY class=body>";
for ($i=10; $i=10; $i++)
{
// Begin the first page with the general info ( just gather the info )
//uptime
$uptime = (time() - filemtime($pagefile[$i]));
$weeks = floor($uptime / (7*(24*3600)) );
$uptime = $uptime - ($weeks * (7*(24*3600)));
$days = floor($uptime / (24*3600));
$uptime = $uptime - ($days * (24*3600));
$hours = floor($uptime / (3600));
$uptime = $uptime - ($hours * (3600));
$minutes = floor($uptime /(60));
$uptime = $uptime - ($minutes * 60);
$seconds = $uptime;
if (!eregi("[0-9]{2}", $seconds)){
$seconds = "0".$seconds;
}
if (!eregi("[0-9]{2}", $minutes)){
$minutes = "0".$minutes;
}
if (!eregi("[0-9]{2}", $hours)){
$hours = "0".$hours;
}
if($weeks == 1){
$weeks = $weeks ." ".'week';
}elseif($weeks == 0){
$weeks="";
}else{
$weeks = $weeks ." ".'weeks';
}
if($days == 1){
$days = $days ." ".'day';
}elseif($days == 0){
$days="";
}else{
$days = $days ." ".'days';
}
if($hours == 1){
$hours = $hours ." ".'hour';
}else{ $hours = $hours ." ".'hours';
}
if($minutes == 1){
$minutes = $minutes ." ".'minute';
}else{ $minutes = $minutes ." ".'minutes';
}
if($seconds == 1){
$seconds = $seconds ." ".'second';
}else{ $seconds = $seconds ." ".'seconds';
}
$theuptime = " ".$weeks." ".$days." ".$hours." ".$minutes." ".$seconds." ";
//generate the general first html page and send it to the browser
echo"<center><table><td valign=top>";
echo"<table>";
echo"<tr><td>System uptime ".substr($pagefile[$i], 2, 6)." :</td><td><span class=generatedinfo>".$theuptime."</span></td></tr></table></table><br>;
}
?>
Kommentar