Ciao a tutti! Quando apro il file dal pc, mi segnala questo:
Parse error: syntax error, unexpected '<' in /membri/universal3000/upload/universal/index_Xhtml.php on line 41
Metto il codice
Codice PHP:
$p=5; //files to be displyaed per page
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html"/>
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
<title>UNIVERSAL 3000</title></head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080"><p>';
$xfile = @file("Gum_Uploads");
if ($npage == "")$npage = "1";
$countfile= count($xfile);
$second = ($p * $npage);
$first = ($p * ($npage-1));
$npages =(int) ceil($countfile / $p);
if ($npage <= $npages and $npage>1) $gline_rew = "<a href=\"$PHP_SELF?npage=".($npage-1)."\">Xhtml Upload</a>";
if ($npages > 1 and $npage<$npages) $gline_next = "<a href=\"$PHP_SELF?npage=".($npage+1)."\">Xhtml Upload</a> ";
$xfile = array_reverse($xfile);
for ($i = $first; $i <= $second-1; $i++)
{
$udata = explode("&&",$xfile[$i]);
print ($i+1).". <a href=\"./Gum_files/".htmlspecialchars($udata[1])."\">".htmlspecialchars($udata[1])."</a> » (".$udata[2].") ".$udata[3]."<br/>";
}
print "<br/>".$gline_rew."| ".$gline_next."<br/>";
print "$countfile Files<br/>";
print "Page $npage of $npages<br/>";
if($npages>2)print "Jump to Page:<input emptyok=\"true\" name=\"q\" format=\"*N\" size=\"3\" value=\"\" /><a href=\"".$_SERVER["PHP_SELF"]."?npage=$(q)\">[Go]</a><br/>";
print "<a href=\"./upload.php\">Xhtml Upload</a><br/>";
Come si può risolvere? Grazie!