How can we get the error when there is a problem to upload a file?
$_FILES contains the error code associated with the uploaded file.
$_FILES contains the error code associated with the uploaded file.
$_FILES represents the original name of the file on the client machine, $_FILES represents the temporary filename of the file stored on the server.
$_FILES is an associative array composed of items sent to the current script via the HTTP POST method.
$_SERVER is an array including information created by the web server such as paths, headers, and script locations.
$GLOBALS is associative array including references to all variables which are currently defined in the global scope of the script.
The session_unregister() function unregister a global variable from the current session and the session_unset() function frees all session variables.
Sessions automatically end when the PHP script finishes executing but can be manually ended using the session_write_close().
A persistent cookie is permanently stored in a cookie file on the browser’s computer. By default, cookies are temporary and are erased if we close the browser.
You can propagate a session id via cookies or URL parameters.
The use of the function session_start() lets us activating a session.