I try to write an image uploader with php. But it is giving an error when I try.
Error is:
Strict Standards: Only variables
The way to fix this is to explode first then use that array in end.
end() needs to get its parameter passed by reference because it manipulates internal pointer but if there is no variable reference it will not work correctly.
Try this
$array = explode(".", $file_name_encrypted);
then
$extension = end($array);