[WEB] PHP Strict Standards: Only variables should be passed by reference in
오랜만에 PHP 파일업로드 페이지 만드는데
Strict Standards: Only variables should be passed by reference in
라는 에러 나옴. 기존에 있던거 쓴건데 그때는 못 본거 같은데..... (동작은 함)
암튼 array_pop(explode('.', $name)); 요게 문제였음.
Link : https://m.blog.naver.com/PostView.nhn?blogId=mikong22&logNo=220755134678&proxyReferer=https:%2F%2Fwww.google.com%2F
보니 array_pop 함수는 단독으로 사용하라고 함. 위에 처럼 같이 쓰면 문제라고....
$ext = explode('.', $name);
$ext = array_pop($ext);
분리 후 정상.
댓글
댓글 쓰기