brug:
http://Rachid.dk/JWNewsPHP.zip og som uploader kan du bruge dette script:
<html>
<head>
<title>File Upload</title>
</head>
<body>
<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"index.phtml\" METHOD=\"POST\">
<?php echo (\"Send this file:\");?>
<INPUT NAME=\"userfile\" TYPE=\"file\"><INPUT TYPE=\"submit\" VALUE=\"Send File\"> <br>
<?php echo (\"please type your password:\");?> <input type=\"password\" name=\"imname\" size=\"10\">
</FORM>
<a href=\"
http://acel.adsl.dk/?id=/home/www/upload/view.phtml\"></a><?php
if ($imname == (\'bod\')) {
if (isset($userfile)) {
// Hvis fil blev uploaded, hvis information om midlertidig fil.
print \"filename: $userfile_name<br>\\n\";
print \"Filesize: $userfile_size<br>\\n\";
if ($userfile <> \"none\") {
if (!copy($userfile,\"data/$userfile_name\")) {
print \"File failed to upload\";
} else {
print \"File uploaded\";
}
}
}
}
else
{
exit;
}
?>