News

Log In Sponsors
Partner Sites
Desire an Oklahoma DUI Lawyer ? get the best - Randy Bumgarner




PHP file uploader not working?



Hello and thx for reading my post. I can't get this PHP uploader to work I followed the tutorial as closely as I could and something went wrong, here is a link to the test page: http://www.johncliffordtaylor.com/upload2/ Every time I upload it say that the file didn't upload. Here is a link to the tutorial I was following: http://www.tizag.com/phpT/fileupload.php And here is the PHP code that I ended up with I've looked it over for mistakes: [code:2ajv3v5z]<?php $target_path = "/johncliffordtaylor.com/upload2/uploads/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); $_FILES['uploadedfile']['tmp_name']; $target_path = "/johncliffordtaylor.com/upload2/uploads/"; $target_path = $target_path . basename($_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target_path)) { echo "The File". basename($_FILES['uploadedfile']['name']). "has been uploaded"; } else { echo "There was an error uploading your file please try again. And remember that all uploaded files need to be under 50 megs."; } ?>[/code:2ajv3v5z] Any help would be greatly appreciated

Click here to read the whole forum topic