-
[php]메일보내기, sendMail, mail프로그램/php 2013. 7. 21. 17:19
\n"; $additional.= "Reply-to: $sender\n"; $additional.= "Content-Type: text/html; charset=EUC-KR"; $val = mail($receiver, $title, $content, $additional); if($val > 0){ return true; //echo "메일 보내기 성공"; }else{ return false; //echo "메일 보내기 실패"; }}?>
-
[php]게시판 리스트 부분프로그램/php 2013. 7. 21. 17:18
글 쿼리부분 // db 객체 생성 $db = new MysqlClass; // 검색어 찾기 $shTitle = ($_GET['shTitle']) ? $_GET['shTitle'] : $_POST['shTitle']; $shKey = ($_GET['shKey']) ? $_GET['shKey'] : $_POST['shKey']; $searchQue = "where 1 "; $searchQue .= ($shTitle && $shKey) ? " and ".$shTitle." like '%".$shKey."%' " : NULL; $sortQue =" order by ref desc, seq asc"; // 스타트 찾기 $start = ($_GET['start']) ? $_GET['start'] : $_POST['..
-
[php]쿠키 클래스,cookie프로그램/php 2013. 7. 21. 17:12
class cookie{ var $cookie; var $key; var $name = 'information'; var $time = 0; var $loc = '/'; var $limit = 5000; function cookie(){ $this->key = $this->name; if(get_magic_quotes_gpc()){ $cookie = stripslashes($_COOKIE[$this->key]); }else{ $cookie = $_COOKIE[$this->key]; } $this->cookie = unserialize($cookie); } function add($name, $value){ $this->cookie[$name] = $value; } function burn(){ $seri..