Only variables should be passed by reference

后端 未结 12 1435
囚心锁ツ
囚心锁ツ 2020-11-22 06:14
// Other variables
$MAX_FILENAME_LENGTH = 260;
$file_name = $_FILES[$upload_name][\'name\'];
//echo \"testing-\".$file_name.\"
\"; //$file_name = strtolower
12条回答
  •  囚心锁ツ
    2020-11-22 06:19

    $file_extension = end(explode('.', $file_name)); //ERROR ON THIS LINE

    change this line as,

    $file_extension = end((explode('.', $file_name))); //no errors

    Technique is simple please put one more brackets for explode,

    (explode()), then only it can perform independently..

提交回复
热议问题