In some places for extracting data of a file @$_FILES[]
is used. What is the difference between @$_FILES[]
and $_FILES[]
?
For example,
$pic = @$_FILES['uploadFile'];
and
$pic = $_FILES['uploadFile'];
In some places for extracting data of a file @$_FILES[]
is used. What is the difference between @$_FILES[]
and $_FILES[]
?
For example,
$pic = @$_FILES['uploadFile'];
and
$pic = $_FILES['uploadFile'];
In PHP @
is an operator used to ignore error messages.
From PHP.net:
PHP supports one error control operator: the at sign (@). When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.