Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2002

    How to determine reason for file upload failure in PHP?

    It is unclear to me how to determine the reason for a file upload failure in PHP. I want the PHP script to report the reason as accurately possible. I didn't understand the php documentation on that and couldn't find an example, so I'd appreciate your help very much. Thanks!

  2. #2
    Join Date
    Jan 2004
    Little things to check up.. It gives me hourS of problems.

    Just don't forget to put


    in your form tags.

  3. #3
    read up on error_reporting.... might lead you in the right direction

  4. #4
    at the top of the php page put

    PHP Code:
    and that sould make your code output the errors. I am aware that when using DirectAdmin, you ahve to login to the CP and view your error log to find out the errors as it stops all error outputing for security reasons, unless that has changed in recent versions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts