php3 CodeIgniter 업로드 라이브러리에서 파일 해시로 업로드하자 set_filename를 찾아 아래와 같이 바꿔줍니다. public function set_filename($path, $filename) { if ($this->encrypt_name == TRUE) { $filename = hash_file('sha256', $this->file_temp).$this->file_ext; } return $filename; } do_upload에 아래 줄을 찾아 if ($this->overwrite == FALSE) { $this->file_name = $this->set_filename($this->upload_path, $this->file_name); if ($this->file_name === FALSE) { return FALSE; } } 아래와 같이 바꿔줍니.. 2014. 8. 2. PHP 소숫점 버리기 PHP에서 소숫점을 버려야 할때 $a = floor($a); 이런식으로 쓰면 된다. 2014. 8. 1. PHP mail() 센드메일 사용하기! $to = "example@example.com"; //보낼사람 $subject = "제목"; //제목 $msg = "$IngameUsername 님이 화이트리스트에 추가되었습니다.\n" "확인해주시기 바랍니다"; //내용 mail($to, $subject, $msg, 'From:'. $from); 2012. 4. 2. 이전 1 다음