본문 바로가기

전체 글

(29)
(함수) isset(), empty(), isnull() 비교 isset(), empty(), isnull() 비교 value if($val) isset empty is_null $val = 1 True True False False $val = '' False True True False $val = '0' False True True False $val = 0 False True True False $val = NULL False False True True $val False False True True $val = array() False True True False $val = array(1) True True False False
(jquery) 라이브러리 경로 jQuery Releases on the CDN The following releases of jQuery are hosted on the CDN: jQuery version 1.7.2 http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.js http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js jQuery version 1.7.1 http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.js http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7...
(함수) getimagesize() getimagesize() $size_info = getimagesize($image_file); $size_info[0] : image width $size_info[1] : image height $size_info[2] : image format (ex, 1:GIF, 2:JPG, 3:PNG, 4:SWF, 5:PDF, 6:BMP, 7:TIFF(intel byte order), 8:TIFF(motolola byte order), 9:JPC, 10:JP2, 11:JPX) $size_info[3] : image size string (ex, height="200" width="300") 샘플테스트 $image_file = "test_001.jpg"; // width='180' height='171' $si..
(정규식) 파일 확장자 추출 파일 확장자 추출 $tmp_name = $_FILES['Filedata']['tmp_name']; $name = $_FILES['Filedata']['name']; $error = $_FILES['Filedata']['error']; $size = $_FILES['Filedata']['size']; $file = preg_replace('/^.+\.([^\.]{1,})$/','\\1',$name); //file 확장자 추출 $img_ext = mb_strtolower($file);
(함수) thumbnail(1) 썸네일 함수 function thumbnail($org_file, $new_file, $max_width, $max_height) { $src_img = ImageCreateFromJPEG($org_file); $img_info = getImageSize($org_file); $img_width = $img_info[0]; $img_height = $img_info[1]; $img_ate = $max_width / $img_info[0]; if ($img_ate > 1) { //작은경우 $dst_width = $img_info[0]; $dst_height = ""; } else { $dst_width = $max_width; $dst_height = (int)($img_info[1] * $img_ate)..
(함수) Array(배열과 집합) Array(배열과 집합) 두배열의 교집합 $a = array(1, 3); $b = array(5, 4, 3); $c = array_intersect($a, $b); print_r($c); 결과 : array(3) 두배열의 합치기 $a = array(1, 3); $b = array(5, 4, 3); $c = array_merge($a, $b); print_r($c); 결과 : array(1, 3, 5, 4, 3) 두배열의 키로 합집합 $a = array(1, 3); $b = array(5, 4, 3); $c = $a + $b; $d = $b + $a; print_r($c); print_r($d); 결과: array(1, 3, 3) 결과: array(5, 4, 3) 두배열의 값으로 합집합 $a = array..
HTML 표준 문서 형식 HTML 2.0 표준 문서 형식 HTML 3.2 표준 문서 형식 HTML 4.01 표준 문서 형식 XHTML 1.0 표준 문서 형식 XHTML 1.1 표준 문서 형식
(jquery+xml) 순간검색 순간검색 순간검색에 대한 자료는 아래 원문URL 페이지의 내용으로 중심으로 합니다. 본 내용은 원문URL에 있는 내용의 요약본입니다. 이해를 돕기위한 수단으로 추가 및 요약한 내용이 있을 수 있습니다. 보다 상세한 내용은 해당 참고URL로 이동 하시기 바랍니다. 원문URL : http://www.ibm.com/developerworks/kr/library/x-instsearch/#N1007D Download : http://www.ibm.com/developerworks/apps/download/index.jsp?contentid=630929&filename=src.zip&method=http&locale=ko_KR 입력하는 동안 결과를 보여주는 새로운 검색의 항샹 기능인 Google의 순간 검색(Ins..