I'm trying to get the dimensions of each photo sent, but when I run the file it happens:
Error:
Warning: chmod(): Invalid argument in C:\Program Files (x86)\EasyPHP-
Devserver-17\eds-www\PPI\adm\cadastrar_jogo.php on line 15
Warning: getimagesize(): Filename cannot be empty in C:\Program Files
(x86)\EasyPHP-Devserver-17\eds-www\PPI\adm\cadastrar_jogo.php on line 16
Here's the part of the code that's giving the error:
for ($i = 0; $i < count($_FILES['img']); $i++){
if (isset($_FILES['img']['name'][$i])){
if (!empty($_FILES['img']['name'][$i])){
chmod($_FILES['img']['tmp_name'][$i], 0777);
list ($larg, $alt) = getimagesize($_FILES['img']['tmp_name'][$i]);
$verifica_quant_img++;
How can I solve the problem, and what exactly is the problem?