didnt seem to get any help in the other subforum but i posted in the wrong place lol sorry... Hey, could anyone help me create one single page with an upload script pleaseeeee? basically needs to have a browser where they click it and it brings up a window where they choose the file they want to upload. doesnt have to be detailed, just the site header as Tha Myth then subheader UPLOAD, then the box and the upload button to start the transfer like this for example... PM me plz! thanks people. Update: this is what i have so far... http://www.tayfon.clashx.com/myth/upload.html i cant get it to work, it doesnt work.. can anyone give me the proper php script please ??
Haven't takem a look at the script, but make sure your upload permissions are right. Edit2: It's linking to uploader.php can you host that script somewhere in a zip/rar so we can take a look at it?
lol,, that file is basically this Code: <? if (is_uploaded_file($userfile)) { move_uploaded_file($userfile, "/useruploads"); } ?> my friend said just using that would work but i know nothing about php :S
kk i used that but it still doesnt work Code: <?php if($_POST['uploadedfile'] != NULL) { $targetPath = "useruploads/"; $targetPath = $targetPath . basename($_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$targetPath)) echo("The file " .basename($_FILES['uploadedfile']['name']. " has been uploaded")); else echo("There was an error uploading the file, please try again"); } ?> tahts what i used, can you see anything wrong in that?
Ok changed it and i think the script works now.... however when i try to upload a file it says it cant write it, any way to change this??? try it out for urself http://www.tayfon.clashx.com/myth/upload.html
how do i do that, sorry i dont know much about php EDIT: i changed it to 777 but now it just doesnt save in the folder its set to and doesnt give an error? can anyone help?