본문 바로가기
  • 행복하게 오래오래 개발자로 살아가기
반응형

전체 글438

자바스크립트 타입/용량 체크 // 첨부 파일 용량 체크function fileCheck(fileValue) { //확장자 체크 var src = getFileType(fileValue); if(!(src.toLowerCase() == "zip"))) { alert("zip 파일로 압축하여 첨부해주세요."); return; } else { return false; } //사이즈체크 var maxSize = 10240; //30MB var fielSize = Math.round(fileValue.fileSize); if(fileSize > maxSize) { alert("첨부파일 사이즈는 10MB 이내로 등록 가능합니다. "); return; } else { return false; }} // 파일 타입 체크function getFil.. 2015. 2. 10.
권한 소유자, 그룹 변경 chown : 파일 소유자, 소유그룹 수정 - ex) chown bible file1 ( file1 파일의 소유자를 bible로 수정 ) chown bible:bible2 file2 ( file2 파일의 소유자를 bible로 그룹을 bible2로 수정 ) chown -cR nobody:nobody dirl ( dirl 폴더와 그안의 모든 파일,디렉토리의 소유자,소유그룹 변경 ) chown -R bible:webhost uploads --from=nobody:nobody ( uploads디렉토리 내의 파일중 소유자가 nobody이고 소유그룹이 nobody로 되어 있는 파일의 소유자를 bible로 변경하고 소유그룹을 webhost로 변경 ) 참고 블로그 : http://egloos.zum.com/slog2/.. 2015. 1. 8.
무료 psd 파일 무료 psd 파일 제공 사이트http://freebiesbug.com/ http://bestdesignoptions.com/ http://www.fordesigner.com/ http://kr.vectorhq.com/ 2014. 12. 18.
css로 테이블 코딩 http://www.senktec.com/2014/01/using-css-display-table-cell-for-columns/ 2014. 12. 15.
리눅스 관련 기본 http://www.mireene.com/webimg/linux_tip1.htm 2014. 12. 12.
두개의 테이블에서 동시에 데이터 삭제하기 http://intomysql.blogspot.kr/2011/01/join-delete-multiple-table-delete.html 2014. 12. 11.
반응형