salve a tutti,
ho trovato questo script "Virtual File Uploader"
http://freephp.html.it/script/view_script.asp?id=179
per far fare ai visitatori del sito l'upload dei file
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
lo script è basato su 2 file:
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
file UPLOAD.HTM
------------------------------
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
<META NAME="GENERATOR" Content="Visual Page 2.0 for Windows">
<TITLE>Virtual PHP File Uploader v1.0</TITLE>
</HEAD>
<BODY>
<FORM ACTION="upload.php" METHOD="POST" ENCTYPE="multipart/form-data">
<P>
<CENTER>
<P>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="36%" HEIGHT="80">
<TR>
<TD HEIGHT="20" COLSPAN="3" BGCOLOR="#0268A6"> </TD>
</TR>
<TR>
<TD HEIGHT="20" COLSPAN="3" BGCOLOR="silver">
<P ALIGN="CENTER"><B><FONT FACE="Verdana">Upload A File</FONT></B>
</TD>
</TR>
<TR>
<TD WIDTH="6%" HEIGHT="67" BGCOLOR="silver"> </TD>
<TD WIDTH="88%" HEIGHT="67" BGCOLOR="silver">
<P ALIGN="CENTER"> <INPUT TYPE="file" NAME="img1" SIZE="30">
</TD>
<TD WIDTH="6%" HEIGHT="67" BGCOLOR="silver"> </TD>
</TR>
<TR>
<TD HEIGHT="54" COLSPAN="3" BGCOLOR="silver">
<CENTER>
<P><INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Upload File">
</CENTER>
</TD>
</TR>
<TR>
<TD WIDTH="6%" BGCOLOR="#0268A6"> </TD>
<TD WIDTH="88%" BGCOLOR="#0268A6">
<P ALIGN="CENTER"><A HREF="http://www.geekscripts.com" target="_blank"><FONT SIZE="2" COLOR="white"
FACE="Verdana">Virtual
File Uploader v1.0</FONT></A>
</TD>
<TD WIDTH="6%" BGCOLOR="#0268A6"> </TD>
</TR>
</TABLE>
</CENTER>
<P>
</FORM>
</BODY>
</HTML>
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
file UPLOAD.PHP
---------------------------
// Virtual File Uploader v1.0 by GeekScripts.Com
// Copyright Virtual Ventures (
www.vv-inc.com)
<?php
if ($img1_name != "") {
@copy("$img1" , "/home/admin/www/fileupload/$img1_name")
or die("Couldn't Upload Your File.");
} else {
die("No File Specified");
}
?>
<HTML>
<HEAD>
<TITLE>File Upload Successful</TITLE>
</HEAD>
<BODY>
<H1>File Upload Successful!</H1>
<P>Successfully Sent: <?php echo "$img1_name"; ?> , a <?php echo "$img1_size"; ?> byte file with the extension type of <?php echo "$img1_type"; ?> </P>
</BODY>
</HTML>
\\\\\\\\\\\\\\\\\\
ho messo i 2 file nella root principale e ho creato la cartella "upload" per salvare i file uploadati
nel file UPLOAD.PHP ho modificato
/home/admin/www/fileupload/$img1_name
in
/upload/$img1_name
ma NON funziona e mi dice:
// Virtual File Uploader v1.0 by GeekScripts.Com // Copyright Virtual Ventures (
www.vv-inc.com) Couldn't Upload Your File.
COSA DEVO FARE PER FARLO FUNZIONARE????