|
|
 |
Re: FN-FORUM mailto form attachments
date posted 28th January 2002 12:36
moi? precious?
you haven't uploaded a file to the server yet.....
**************
if ($advertimage_name !="") {
$filename="/home/sports/images/adverts/$advertimage_name";
if (file_exists($filename)) {die("file exists already, change your filename
before uploading");}
else {
if (is_uploaded_file($advertimage)) {copy("$advertimage",
"/home/sports/images/adverts/$advertimage_name") or die ("Couldn't copy the
file."); }
else { echo "Possible file upload attack: filename '$advertimage.";}
}
}
********************
----- Original Message -----
From: "admin" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, January 28, 2002 12:42 PM
Subject: RE: FN-FORUM mailto form attachments
Cheers Martyn,
Glad to see that not everyone is as "precious" :-). How does the uploaded
file get attached?
---------- Original Message ----------------------------------
From: Martyn Baker [EMAIL REMOVED]
Reply-To: [EMAIL REMOVED]
Date: Mon, 28 Jan 2002 11:18:29 +0000
>This will send the mail out in php, you just need to put the form info into
>$msg.
>
> |
 |
|