Jump to content

AS

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

AS's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No ym_chaitu, it still does not work. I created the folder with 777 but still does not copy files into it.
  2. if (!is_dir($target_path)) { die ("Upload directory does not exists."); } if (!is_writable($target_path)) { die ("Upload directory is not writable."); }
  3. Well, I just added two debug scripts one to see if the folder is not writable, and one to see if the folder does not exist. It gives a file does not exist error, even I am sure i created the folder under my server ftp? Any ideas now.? Thanks a lot
  4. AMMMMM! I don't understand what you mean, can you clarify? Thanks
  5. It did not work either ways.
  6. Here is the code I am using: ________The form <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Select Filename:</label> <input type="file" name="file" id="file" /> <input type="submit" name="submit" value="Upload File" /> </form> -----The upload_file.php <?php $target_path = "upload/"; $filename = $_FILES['file']['name']; $uploadFile = $target_path . $_FILES['file']['name']; move_uploaded_file($_FILES['file']['tm… $target_path); if(move_uploaded_file($_FILES['file'][… $target_path)) { echo "The file ". basename( $_FILES['file']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!";} ?> ______________________________________… Whenever I upload a file I get my error message "There was an error uploading the file, please try again!". I don't seem to see what's wrong with it so I thought anyone could help. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.