Example of a unique and easy PHP 2011-11-28 12:00:58에 작성.

Plans to continue adding haenagal. 편하게 조건부 할당 // 1 $limit = ($_GET[’limit’]?$_GET[’limit’]:20);   // 2 $limit = ($_GET[’limit’]?:20); // 1 if (!$foo) $foo = 5;   // 2 $foo or $foo = 5;   // 3 $foo || $foo = 5; // 1 if ($foo) func();   // 2 $foo && func();

Mobile Browser Detection Script | Detect Mobile Browsers 2011-09-15 16:58:19에 작성.

In the iPhone mobile website, Android browser, Dolphin browser for mobile users to access at home have created a mobile-only assume that. How they will direct you to the page? Main page address directly into the mobile will geoleonol tteokhani, How will automatically move or? Most would choose the latter, it would be better for users. 예전에는 간단하게 iPhone 과 Android 만 유저 에이전트에서 감지하여

Anonymous functions in PHP? 2011-06-21 19:39:35에 작성.

Until now, that I did not write an anonymous function in php. Jabaseukeuripteuseo old can write an anonymous function in php. Version 5.3 or later can be written. I created a simple example, the source is as follows:. <? $data = array( "code" => md5(rand(0,9999)), "name" => "test2" ); $content = "코드는 [[code]]이고, 이름은 [[name]]Is. [[zz]]는 아직 설정되지 않았다."; $content = preg_replace_callback("/\[\[(.*?)\]\]/", function($matches) use ($data) { return ($data[$matches[1]]?$data[$matches[1]]:"[[{$matches[1]}]]"); }, $content); echo…

To borrow from another domain, the whole site. 2011-05-08 21:15:25에 작성.

First, this method can be very dangerous. I did not mean to mandeulttaen were planning to create a completely bottoms Show off very easily solve phishing sites worth fishy. Therefore, without revealing more information about how to talk wonriman. So who has the ability to speak out roughly deuleusiltego, Those who have no ability to learn a little more in your area after winning a challenge this, please.. Requirements…

Simply a cache class to implement the cache cacher.class.php 2010-07-01 20:28:56에 작성.

보통 웹 작업시에 아주 복잡한 연산이 있거나 서버에 부담을 주는 페이지는캐시방식으로 부담을 최소화 시켜주는 방법을 씁니다. 평소에 이 캐시 방식을 쓸때 매번 코드를 길게 적어줘야했었는데 너무 귀찮아서 라이브러리를 찾아보다가 아래에 아주 편하게 누군가가 만들어둔걸 발견했습니다. Cacher 다운받아서 보면 아주 쉽게 사용할 수 있도록 되어 있습니다. 임시 캐시파일의 기본 디렉토리는 /tmp/ 폴더로 되어 있습니다.

Google Weather API 2009-12-03 04:19:26에 작성.

http://www.google.co.kr/ig/api?weather=도시명 위는 구글 날씨 API의 주소입니다. We usually expect from a portal site, the city and is very much more, Utf-8 encoding instead of receiving euc-kr(cp949)Has taken on the XML format. 지원하는 도시 지원하는 도시는 아래와 같습니다. There may be more. $googleWeatherCity[’kor’] = array("강릉", "경주", "고양", "광명", "광주", "구미", "군산", "군포", "김해", "대구", "대전", "동해", "목포", "부산", "부천", "서귀포", "서울", "성남", "송탄", "수원", "시흥", "안산", "안양",…

PHP – SMS Bots 2009-09-11 11:43:26에 작성.

문자를 보내면 마치 irc등에서 봇에게 명령을 보낸것 처럼 문자로 답변을 해줍니다. 원래 버스 도착시간 확인용으로 만든거였는데 이 기능 정말 유용합니다. (도착정보는 businfo.go.kr 에서 가져옵니다.) 모듈 부분 소스입니다.

Google Code Search 2009-05-08 12:19:18에 작성.

Ow, str_ireplace() There is not a function? So Where Are the function implemented directly chatahboni str_ireplace, ‘Result Code’ Lf contributions.. Here, there's a direct guhyeonhaenon source. I tried using Google Code Search is a direct. Search results will appear very much. This implementation does not function as well as the, Search on the web that a lot of source code would seem to be very useful for programmers peurodeun ahmachueodeun. 2006Was released in, Okay, now's the first time….