first of ALl, im sorry i dont have time to look for a post like this one.
I have a PHP book, and im very new, in the book it gives me a nice simple script: (which i edited to my own needs)
########book script################
<?
if ($img1_name != "") {
@copy("$img1", "http://www.atba.us/uploadbin/img1_name")
or die("Couldn't copy the file.");
} else {
die("No input file specified");
}
?>
<HTML>
<HEAD>
<TITLE>Successful File Upload</TITLE>
</HEAD>
<BODY>
<H1>Success!</H1>
<P>You sent: <? echo "$img1_name"; ?>, a <? echo "$img1_size"; ?>
byte file with a mime type of <? echo "$img1_type"; ?>.</P>
</BODY>
</HTML>
###########end of book script###############
i had made a form and named the input="file" and named it img1, the script didnt copy. and all i did was change the @copy to my website, and i changed the message it gives when succesful.
And then i thought of finding another script online, so i downloaded, a little script package, BUT It was sooooo confusing!! (CHECK OUT THE ATTACHMENT)
it has 2 php scripts, ones like a class (i have no idea what that means) and other is an example php, so i made this... here is the address where i uploaded it to: http://www.atba.us/uploadbin/attachment.php , now try to upload something there... it gives an error!!!!!!!!!!
PLEASE SOMEONE HELP ME, THX FOR YOUR TIME, GREATLY APPRECIATED! 🙁