php manual PHP Manual - features.file-upload.errors

PHP, short for "PHP: Hypertext Preprocessor", is an open-source, reflective programming language used mainly for developing server-side applications and dynamic web content, and more recently, other software.

PHP allows interaction with a large number of relational database management systems, such as MySQL, Oracle, IBM DB2, Microsoft SQL Server, PostgreSQL and SQLite. PHP runs on most major operating systems, including UNIX, Linux, Windows, and Mac OS X, and can interact with many major web servers. The official PHP website contains extensive documentation.

There is a command line interface, as well as GUI libraries such as the Gimp Tool Kit (GTK+) and text mode libraries like Ncurses and Newt.

PHP is the result of the efforts of many contributors. It is licensed under the PHP License, a BSD-style license. Since version 4, it has been powered by the Zend engine., rabaty hosting, classic muscle cars, bardzo tanie domeny,,, tanie wycieczki Chorwacja, profesjonalny seo hosting,

Error Messages Explained

Error Messages Explained

Since PHP 4.2.0, 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'].


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


Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini.


Value: 2; The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.


Value: 3; The uploaded file was only partially uploaded.


Value: 4; No file was uploaded.


Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3.


Value: 7; Failed to write file to disk. Introduced in PHP 5.1.0.

Note: These became PHP constants in PHP 4.3.0.