how to get error in while file is uploading in php

It is for static page, dynamic page, website, SEO, performance and other web development discussion
Joshi jahanvi

how to get error in while file is uploading in php

Postby Joshi jahanvi » Fri Oct 31, 2014 2:50 pm

How can we get the error when there is a problem to upload a file?


sonall gajera

Re: how to get error in while file is uploading in php

Postby sonall gajera » Tue Jul 07, 2015 11:30 am

PHP returns an appropriate error code along with the file array. The error code can be found in the error segment of the file array that is created during the file upload by PHP. In other words, the error might be found in $_FILES['userfile']['error'].

UPLOAD_ERR_OK
Value: 0; There is no error, the file uploaded with success.


Return to “PHP, HTML, MYSQL and Web Hosting”

Who is online

Users browsing this forum: No registered users and 1 guest