Fatal error: Cannot re-assign auto-global variable _FILES in C:\xampp\htdocs\user\utils\CommonUtils.php on line 1395
The code on line 1395 is
public static function saveAvatar($code, $pilotid, $_FILES) {
you can't use $_FILES
for function parameter it's reserved word, use this instead of
public static function saveAvatar($code, $pilotid, $files) { }
and for calling pass the $_FILES
like this
saveAvatar($code, $pilotid, $_FILES);
OR
You can also directly access the $_FILES
without passing it in function parameter inside function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With