I have a simple upload script and it seems to be hitting the die() command everytime. Can anyone help out here....I can't figure out if it is something on the server or if it is something in my script. I'll start with the code for the upload:
move_uploaded_file("$img", "/home/chad/public_html/www.magform.com/tmp/")
or
die("<BR><BR><B>damm thing failed</B>") ;
as you can see the reffering page has an input tag with "img" as the name.
So from here the directory that it is going to has been CHMOD'd to 777 to allow writes. So this doesn't produce any errors in the execution but it does execute die() everytime.....and it's driving me crazy cause I can't find a problem in my script and I can't figure out what it could be on the server, if that's the problem, so if anyone out there has had a problem like this can they please respond and let me know what kind of questions I could ask the admin of the server to try and narrow down this problem.....thanx in advance
Chad.