Posted by Kerry on 10/10/50 11:45
Hi,
I use the simple PHP script below with an html file for my visitors to
upload files.
I'd like to make it more secure by either allowing or denying certain files.
I've tried adding more code but I can't get anything to work.
I'm not an expert, but know it's probably only a couple of simple lines of
code that will do the trick.
TIA to anyone that can offer a solution.
Kerry
<?php
if ($img1_name != "") {
@copy("$img1" , "/home/mysite/myfolder/uploader/$img1_name")
or die("Couldn't Upload Your File.");
} else {
die("No File Specified");
}
?>
[Back to original message]
|