이 블로그 검색

2016년 11월 28일 월요일

chdir

chdir ( string $directory );


현재 디렉토리를 $directory 로 변경 함.

defined

define 함수가 있는지 여부 확인


defined
('CONSTANT') or define('CONSTANT''SomeDefaultValue');
?>

2016년 9월 26일 월요일

대충 갔다 쓰려고 만든 jquery 유효성 검사

$("#regBtn").click(function(){
var ckd = 0;
$("input[type=text], select").each(function(){
if ($(this).attr("msg") && !$(this).val()) {
alert($(this).attr("msg"));
$(this).focus();
ckd = 1;
return false;
}
})
if (ckd == 0) {
$("input[type=checkbox]").each(function(){
if (!$(this+":checked").val() && $(this).attr("msg") && !$("input[name='"+$(this).attr("andbox")+"']:checked").val()) {
alert($(this).attr("msg"));
$(this).focus();
ckd = 1;
return false;
}
})
}
if (ckd == 1) {return false;}else{$("#frm").submit();}
})