Skip to content

CHICPRO

  • Life Log
  • Cycling Log
  • Photo Log
    • Portrait
    • Landscape
    • Flower
    • Etc
  • Coding Log
  • Information

Dropzonejs를 이용한 Drag & Drop 파일 업로드 구현

2018-03-28 by 편리

Dropzonejs를 이용해 Drag & Drop 파일 업로드 기능을 구현했다. form 페이지에서 업로드 이미지를 추가하고 submit 버튼을 클릭했을 때 서버로 이미지 파일이 업로드되도록 했고 추가된 이미지 파일을 삭제했을 때 서버에 저장된 이미지도 삭제되도록 기능을 구현했다. 스크립트 코드 중 일부는 jQuery를 이용하기 때문에 함께 로드되어야 한다.

<form name="fname">
<label for="fld">필드</label>
<input type="text" name="fld" id="fld" value="">

<div class="dropzone" id="fileDropzone"></div>

</form>

form은 위와 같이 추가적인 input 필드와 dropzone이 포함되어 있다. Dropzonejs 사용을 위해 스크립트 파일을 로드한다.

<script src="./js/dropzone.js"></script>

(more…)

Continue Reading

[PHP] Database class for MySQL which uses the PDO extension

2018-04-12 by 편리

PHP Data Object(PDO)를 이용하여 MySQL DB를 사용하기 위한 Class 이다. Prepared statements 와 named placeholder 를 사용하도록 코드를 작성했다. Class 사용 전 DB_NAME, DB_USER 등의 정보를 설정해야 한다. 아래 코드는 PHP 7.0.0 버전 이상에서 사용할 수 있다. <?php // DB 설정 define(‘DB_HOST’, ‘localhost’); define(‘DB_NAME’, ”); define(‘DB_USER’, ”); define(‘DB_PASS’, ”); define(‘DB_ERROR_MODE’, ”); // SILENT, WARNING class DB …

Continue Reading

Harman Kardon Esquire Mini Brown Esquire Mini Speaker

2018-03-14 by 편리

Harman Kardon Esquire Mini Brown Esquire Mini Speaker

➜ Price : $54.99

Harman Kardon Esquire Mini is a bold, state-of-the-art solution exceeding the needs of the on-the-go professional. No attention-to detail has been spared-from the lineup of premium materials utilized by master craftsmanship to the chic urban styling of its sublime, unibody design. Completely portable and wireless, it provides exceptional sound from its dual, high-performance drivers and enhanced bass port design -for the best quality sound in its category. Esquire Mini is also Bluetooth-enabled, for full stereo streaming with your favorite devices. It’s the must-have accessory for your audio style. It doubles as a conference phone system with dual-microphone and built-in echo and noise cancelation technology for superb sound and USB access to recharge your favorite devices. An 8-hour, rechargeable Li-ion battery promises remote accessibility while its runway-ready, head-turning appearance translates to an indispensable travel companion for work or play. This is one piece designed to offer style and performance for you and your music. (more…)

Continue Reading

[PHP] Kakao Vision API 사용을 위한 PHP Client

2018-03-09 by 편리

지난 2018년 3월 7일 공개된 Kakao Vision API 사용을 위한 PHP Client를 개발했다. Vision API를 이용해 이미지의 성인이미지 여부 등을 판별할 수 있다. php-kakao-vision-api 클라이언트는 아래의 Vision API를 지원한다.

  • 얼굴 검출
  • 상품 검출
  • 썸네일 검출
  • 썸네일 생성
  • 멀티태그 생성
  • 성인 이미지 판별

composer 를 통한 설치를 지원하며 아래 명령을 통해 설치할 수 있다.

composer require chicpro/php-kakao-vision-api
  • Github 저장소 : https://github.com/chicpro/php-kakao-vision-api
  • Packagist : https://packagist.org/packages/chicpro/php-kakao-vision-api

(more…)

Continue Reading

워드프레스 굿스플로 알림톡 플러그인 개발

2018-03-06 by 편리

워드프레스를 사용하고 있긴 하지만 플러그인 개발 등에 대해서는 깊게 공부를 해본 적이 없어서 알림톡 플러그인을 잘 개발할 수 있을까 걱정을 했는데.. 닥치면 다 한다는 일념하에 무작정 플러그인 개발을 시작했는데 원하는대로 개발을 마칠 수가 있어서 너무나 다행이라고 생각하고 있다. 지난 주부터 개발을 했으니 실제 작업 기간은 5일 정도로 생각하면 될 듯 하다. 관리자 설정 페이지 만드는 것부터 모두 새로운 것이었으니.. 나름 선방한 게 아닌가 생각하며 위안을 삼고 있다.

기능은 위 설정 화면과 같이 각 결제 수단에 맞게 알림톡을 발송하는 것이다. 일반적인 환경이라면 좀 더 쉽게 개발을 할 수도 있었겠지만 아무래도 워드프레스 환경이다 보니 그에 맞춰서 개발하는 게 쉽지가 않았다. hook의 개념부터 공부를 했다고 하면 될  것 같다. (more…)

Continue Reading

Posts pagination

  • Previous
  • 1
  • …
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • …
  • 748
  • Next

Recent Posts

  • iterm2 에서 상단에 명령어 고정되는 것 해제하기
  • iterm2 터미널에서 마우스 클릭 때 블록이 선택되는 것 해제하기
  • iterm2 서버 접속 때 프로파일 자동 변경
  • hidutil 을 이용한 키보드 키 리맵핑
  • SK 세븐모바일 유심 셀프교체
  • php 배열 연산에서 + 와 array_merge 의 차이
  • pcntl_fork 를 이용한 다중 프로세스 실행
  • 아이폰 단축어를 이용하여 주중 공휴일엔 알람 울리지 않게 하기
  • 구글 캘린더 전체일정 재동기화
  • OpenLiteSpeed 웹서버에 HTTP 인증 적용

Recent Comments

  • 편리 on 업무관리용 그누보드 게시판 스킨
  • 임종섭 on 업무관리용 그누보드 게시판 스킨
  • 캐논 5D 펌웨어 | Dslr 펌웨어 업그레이드 방법 82 개의 베스트 답변 on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • Top 5 캐논 5D 펌웨어 Top 89 Best Answers on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • 편리 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 임팀장 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 편리 on Notepad++ NppFTP 플러그인 수동 설치
  • paul-j on Notepad++ NppFTP 플러그인 수동 설치
  • YS on Windows 10 iCloud 사진 저장 폴더 변경
  • 편리 on Docker를 이용한 Centos7 + httpd + php 5.4 개발환경 구축

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 CHICPRO | Built using WordPress and SuperbThemes