si ma se ci carichi qualche file.. non te lo fa caricare.. metto l'altro codice..
Codice PHP:
<?php
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">
';
if ($upload="upload"&&$superdat_name){
if (!eregi("\.(mid|gif|bmp|mid|midi|3gp|mp3|wav|mpn|nth|mpc|jar|jad|jpeg|jpg|sis|mmf|amr|thm|png|wbmp)$",$superdat_name)){
print "<b>Unsuported File extention!!!</b>";
}else{
$superdat_name = preg_replace(
'/[^a-zA-Z0-9\.\$\%\'\`\-\@\{\}\~\!\#\(\)\&\_\^]/'
,'',str_replace(array(' ','%20'),array('_','_'),$superdat_name));
if(strlen($superdat_name)>53){ print "<b>File Name to long!!!</b>";
}else{
if (empty($superdat)) {
print "<b>No input file specified!!!</b>";
}else{
copy("$superdat", "Gum_files/$superdat_name") or
die("Couldn't copy file.");
$date=(date("D, j F Y"));
$fsize=round($superdat_size/1024,1);
$text = "&&$superdat_name&&$fsize KB&&$date&&$REMOTE_ADDR&&";
$text=strip_tags($text);
$text = ereg_replace("\n", " ", $text);
$text = ereg_replace("\r", "", $text);
$text = ereg_replace("~", "-", $text);
$text = str_replace('$', '$$', $text);
$xfile = @file("Gum_Uploads");
$xfile = array_reverse($xfile);
$check = explode("&&",$xfile[0]);
if("$text"!="$check[1]"){
$fp=@fopen("Gum_Uploads","a");
@fputs($fp,"$text \r\n");
@fclose($fp);
}
echo "<b>$superdat_name</b> has been successfully uploaded";
}
}
}
}
?>
<FORM ACTION="upload.php" METHOD="POST" ENCTYPE="multipart/form-data">
<img src="./upload.png" alt="ladyenigma"/><br/>
<b>File to be sent :</b><br/>
<input type="file" name="superdat">
<input type="hidden" name="upload" value="upload"/><br/>
<INPUT TYPE=SUBMIT NAME="submit" VALUE="Upload File"><br/><br/><a href="./index.php">Uploaded Files</a><br/> I tuoi files dovranno avere questi formati:<br/>
*.jpg *.gif, *.png, *.bmp, *.mid, *.midi, *.mpn, *.mpc, *.mmf, *.amr, *.mp3, *wav, *.3gp, *.sis, *.thm, *.jar, *.nth.<br/>
L'indirizzo delle tue foto/immagini (es. Angioletto.gif) sarà il seguente.. es:http://ladyenigma.altervista.org/upload/Gum_files/Angioletto.gif<br/>
<br/>© by LadyEnigma<br/><a href="http://universal3000.altervista.org/chat_universal/index.php">Torna CHAT UNIVERSAL</a>
</FORM>
</body>
</html>
ma come si faa a tornare su php4?prima o poi è obbligatorio il php5 giusto??