Could be that although you have 755/777 permissions, SELinux is blocking httpd from writing/creating dirs. Try:chcon -R -t httpd_sys_content_t /path/to/www chcon -R -t httpd_sys_content_rw_t /path/to/www/dir/for/rw Further info: http://wiki.centos.org/TipsAndTricks/SelinuxBooleans
밴드 공유하기를 구현할때, 제목 내용 이미지를 넣고 싶었지만 아무리 공유하기를 눌러도 전달되지 않았다. window.open("http://www.band.us/plugin/share?body="+encodeURIComponent($("#docTitle").val() + "-" + $("#docAuthor").val())+encodeURIComponent("\n")+encodeURIComponent($("#docShortUrl").val())+"&route="+location.href, "share_band", "width=410, height=540, resizable=no"); (JSTL구문이 섞여있다...) 어쨋거나 body 파라미터에 제목\n주소 식으로 전달을 하면 밴드에 공유하기에 카드가 생긴다..
자바스크립트에서 숫자를 표기할때 3자리마다 콤마를 찍어줘야 할 때가 있다 자주 사용하는 기능인데 매번 만들기란 여간 귀찮은게 아니다. 콤마찍기 1 2 3 4 5 //콤마찍기 function comma(str) { str = String(str); return str.replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,'); } 콤마풀기 1 2 3 4 5 //콤마풀기 function uncomma(str) { str = String(str); return str.replace(/[^\d]+/g, ''); } 복사 붙여넣기로 사용하자! input box에서 사용자 입력시 바로 콤마를 찍어주기 위한 함수도 추가 한다. 1 2 3 4 5 function inputNumberFormat(ob..
