WHERE CONCAT_WS(f_bill_title,f_bill_no,f_bill_daesu) like '%7%'
WHERE regexp_like(name,'AA|BB|DD')

'php, codeigniter' 카테고리의 다른 글

요일 구하기  (0) 2014.12.24
mysql 인젝션(injection) 방어  (0) 2014.12.10
파일 다운로드 취약점 방어  (0) 2014.11.20
이미지 생성하기  (0) 2014.11.19
모바일 파일 다운로드 헤더  (0) 2014.11.06
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
http://www.tinymce.com/

'javascript, jquery' 카테고리의 다른 글

문자열 마지막 문자 제거  (0) 2015.01.11
print_r 함수  (0) 2015.01.11
클래스(.class)명 검사해서 처리하기  (0) 2014.10.18
jquery CDN  (0) 2014.10.14
팝업창 크기에 맞게 이미지 리사이즈  (0) 2014.10.12
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
if(eregi("\.\.|/", $filename )) {
	echo "상대경로로 접근할 수 없습니다.";
	exit;
}

 

출처 : http://m.blog.daum.net/_blog/_m/articleView.do?blogid=0YdvX&articleno=146#

'php, codeigniter' 카테고리의 다른 글

mysql 인젝션(injection) 방어  (0) 2014.12.10
코드이그나이터 : 여러개의 필드 like  (0) 2014.12.04
이미지 생성하기  (0) 2014.11.19
모바일 파일 다운로드 헤더  (0) 2014.11.06
게시판 첨부파일 추가  (0) 2014.11.05
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
<?php
// File and new size
$filename = 'source.jpg';
$percent = 0.5;

// Content type
// header('Content-Type: image/jpeg');

// Get new sizes
list($width, $height) = getimagesize($filename);
$newwidth = $width * $percent;
$newheight = $height * $percent;

// Load
$thumb = imagecreatetruecolor($newwidth, $newheight);
$source = imagecreatefromjpeg($filename);

// Resize
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);

// Output
imagejpeg($thumb, "target.jpg", 100);
?>
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
WHERE DATE_FORMAT(Regidate,'%Y-%m-%d') BETWEEN '2010-12-03' AND '2011-02-27'

'database, query' 카테고리의 다른 글

mssql - auto_increment 초기화  (0) 2015.05.01
메일주소 포함된 필드 찾기  (0) 2015.02.17
UNIX_TIMESTAMP 변환하기  (0) 2014.10.13
페이징시 유효한 FOUND_ROWS();  (0) 2014.10.09
mysql table / column(type) 변경  (0) 2014.10.08
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
header("Content-type: application/octet-stream");

'php, codeigniter' 카테고리의 다른 글

파일 다운로드 취약점 방어  (0) 2014.11.20
이미지 생성하기  (0) 2014.11.19
게시판 첨부파일 추가  (0) 2014.11.05
PHP 특정 문자 존재 유무 및 문자 변환 함수들  (0) 2014.10.23
디비 연결 테스트  (0) 2014.10.16
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,