PHP 5.4.0 The full version releases. PHP 5.4 point change in. 2012-03-02 11:15:54에 작성.

드디어 아주 많은 기능들이 추가된 PHP 5.4.0의 정식버전이 릴리즈 되었다. 기존에는 RC 버전만 배포되고 있었다. PHP 공식 홈페이지에서는 5.4 버전의 릴리즈가 기존 5.1~5.3 버전까지 업데이트에 비해서 상당히 큰 스케일이라 한다. Deprecated features in PHP 5.4.x mysql_list_dbs() get_magic_quotes_gpc() -> 항상 false 를 반환 get_magic_quotes_runtime() -> 항상 false 를 반환 set_magic_quotes_runtime() -> 에러 mcrypt_generic_end() 특히 magic_quote 를

2038Year (Y2K38) 2011-07-02 15:51:10에 작성.

Y2K? During the 1900s represented the old days of the date '98, If you have been represented as '99 was. Y2K problem, where in December 1999 for 31 days or if the 2000s will be, ’00Years are able to express in the computerized data entry, etc., not 1998 98, 99, 00 If it is due to input computer data ’00Should recognize the year 1900 year 2000 year should be recognized immediately Y2K problem is unknown. 당시에

Akinator for IRC Bot 2010-02-22 15:06:51에 작성.

Akinator facing an iPhone version of Guillermo packet analysis application botedaga get the irc I've pasted.

irc bot socket_select troubleshooting functions 2010-02-10 20:51:43에 작성.

function process() { while (1) { $botSocketArray = $this->getIrcSocketList(); // print_r($botSocketArray); if ($bufSockSelect=@socket_select($botSocketArray[’socket’], $write, $except = NULL, 1)) { foreach ($botSocketArray[’class’] as $class) { if (!@socket_recv($class->socket,$buf,512,MSG_PEEK)) continue; if ($class->socktype == “irc”) { // irc소켓일 경우 이런식으로 애매하게 쓰고 있던 socket_select 함수를, function process() { while (1) { $botSocketArray = $this->getIrcSocketList(); if (!$botSocketArray) return error(“어떤 봇도

Related to php FILES 2009-07-18 17:11:44에 작성.

파일 업로드 관련소스를 보면 대부분 복잡합니다. 그래서 귀찮아서 책을 안보고 공부하는분들은 접근하기가 어려운데 사실 한번 해보면 쉽습니다. 아래는 기본적인 업로드에 관련된 소스입니다. 폼입니다. <form method="post" enctype="multipart/form-data" action="upload_ok.php"> <input type="file" name="userfile" style="width: 100%;"></br> <input type="submit" value="파일 업로드" /> </form> 이렇게 보내면 이렇게 변수를 받습니다. $_FILES[’userfile’][’name’] = "업로드한파일명.jpg"; $_FILES[’userfile’][’type’] = "image/jpeg"; // 파일의 포맷 $_FILES[’userfile’][’tmp_name’] = "/tmp/phpKAI9e1"; //…

Implode very easy but useful function() 2009-04-28 14:44:41에 작성.

To a variable named s1 s2 s3 s4 s5 s6 s7 article variables that contain the components of any array, Again dividing both s1, s3, s4, s5, operations that s6 reunion, etc.. 전 여태까지 implode() 함수의 존재를 몰라서 위와 같은 코드를 구현할 때 다음과 같이 했습니다. $a = "s1 s2 s3 s4 s5 s6 s7 s8"; $b = explode("…

The new syntax of an if statement. 2009-04-28 14:34:40에 작성.

난 항상 if문을 코딩할 땐 if ($a == "a") echo "test"; else echo "test2"; 라던가 if ($a == "a") { echo "test"; } else { echo "test2"; } 로 쓰곤 했다. 그러나 얼마전 한줄로 여러 명령을 쓰고 싶은데 { } 를 안쓰고 어떻게 방법이 없을까 하고 찾아보다가 이렇게 새로운 문법을 발견했다. if ($a == "a"):…