9월, 2017의 게시물 표시

수원대 경상관 suwon secure 윈도우 10 실행법

설치 파일을 받은 다음 c:\program files(x86)\BISHOP_SE 이동하여 64비트 설치 파일을 실행해야 한다.

카카오 LAMP 이용한 초간단 챗봇 만들기

카카오 플러스친구 API 만들기 PHP를 이용해서 간단한 플러스친구 챗봇을 만들어보자. https://center-pf.kakao.com/login  로긴하고 플러스 친구를 만든다. 스마트 채팅 > API형 LAMP 설정 DigitalOcean에서 계정을 만든다면 LAMP 환경을 구축한다. /etc/apache2/apache2.conf 수정하여 php extensions을 감추자. <Directory "/var/www/html/">     Options FollowSymLinks MultiViews     AllowOverride none     Order allow,deny     Allow from all </Directory> PHP 기본적으로 두 개의 파일이 필요하다. keyboard.php, message.php Keyboard.php <?php echo <<< EOD {     "type" : "buttons",     "buttons" : ["시작하기", "도움말"] } EOD; ?> Message.php <?php function call_msg($msg) {     $output = '{"message":{"text":"'.$msg.'"}}';     return $output; } $data = json_decode(file_get_contents('php://input'), true); $content = $data["content"]; if( $content == "시작하기" ) {     echo call_msg("시작해볼까?"); } //