$newsubject='=?UTF-8?B?'.base64_encode($subject).'?='; @http://lustformori.tistory.com/62 @http://stackoverflow.com/questions/447560/php-mail-encodes-subject-line
# yum install php-gd 실행시 Missing Dependency: php-common = 5.1.6-39.... 라는 메시지가 나오면 # yum --enablerepo=webtatic install php-gd 실행. 참고 http://mattiasgeniar.be/2008/09/17/install-gd-library-for-php5-on-centos/
요소객체 DOM 속성을 반환,설정 elem.checkedtrue (Boolean) Will change with checkbox state$(elem).prop("checked")true (Boolean) Will change with checkbox stateelem.getAttribute("checked")"checked" (String) Initial state of the checkbox; does not change$(elem).attr("checked")(1.6)"checked" (String) Initial state of the checkbox; does not change$(elem).attr("checked")(1.6.1+)"checked" (String) Will change with..
자세한 내용은 원문, 은두고수님의 블로그 참고 http://okkks.tistory.com/900 php 파일을 리눅스에서 쉘 방식으로 직접 실행을 해보자. 실행할 php파일이 있는 디렉토리로 이동한다. ]# cd 실행할 php파일 디렉토리 방법1> ]# ./파일명.php 방법2> ]# php 파일명.php * 방법1,2처럼해도 실행이 안된다면 whereis 명령어로 먼저 php파일 위치를 알아낸다. ]# whereis php php: /usr/bin/php /etc/php.d /etc/php.ini /usr/lib/php /usr/share/man/man1/php.1.gz 위 내용은 php설치설정에 따라 다를 수 있다. 방법3> ]# /usr/bin/php 파일명.php 참고1> 권한이 없다고 하면(P..
mysqldump --opt --default-char=utf8 -u user -p DB > backup.sqlmysqldump 시 Can't open file: './DB/table.frm' (errno: 24) when using LOCK TABLE라는 메시지가 나오면--lock-all-table 옵션추가 mysqldump --opt --default-char=utf8 --lock-all-table -u user -p DB > backup.sql
grep -e hanmail /public_html/ -R-> public_html 디렉토리 안에 hanmail 이라는 단어가 있는 모든 파일 grep -e hanmail /public_html/ -R > {file_name}-> 검색결과를 파일로 저장