Posted
Filed under 프로그래밍/PHP
국내 php 개발자들 대부분이 디버깅을 안하는걸로 알고 있다.
아직도 editplus를 쓰는곳이 허다하니...

제발 디버깅 하자~~~~~


* php에 xdebug설치
apt-get install php5-xdebug

* 20-xdebug.ini 에 추가
xdebug.remote_enable = 1
php5-fpm 리스타트

* 크롬에서 Xdebug helper 설치
https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc

* phpstorm 에서 가운데 전화기 벌레모양 킨다
사용자 삽입 이미지




 브레이크 포인트를 하나 걸어놓고

* 크롬 Xdebug helper의 Debug를 키고 새로고침 한다.

* 처음 접근시에는 accpet  화면 나오는데 그냥 accpet누른다.

* phpstorm에서 잡힌다~
사용자 삽입 이미지








* 잘 쓰삼~

2016/04/14 18:35 2016/04/14 18:35
Posted
Filed under 리눅스
혹시나 리눅스에서 자동인식할까 사봤다.
역시나 안되네 심지어 윈도우7에서도 못잡는다.
드라이버 별도로 깔아야 잡는다.
리눅스도 드라이버를 설치하니까 되기는하는데....
의미없다. 바로 인식해야지...

이 제품은 비추한다.

2016/03/25 16:36 2016/03/25 16:36
Posted
Filed under 프로그래밍/PHP
PHP버전을 5.6.11로 업그레이드를 했더니 Disallowed Key Characters. 오류가 난다.
해결 방법은...

1. system/core/input.php 을 연다.
2. function _clean_input_keys($str) 을 찾는다.
3. 수정한다.
 if ( ! preg_match("/^[a-z0-9:_\/-]+$|/i", $str))
 {
 exit('Disallowed Key Characters.'. $str);
 }



추가로...
Common.php 257번째줄에 notice가 나오면 수정
 $_config[0] =& $config;
 return $_config[0];



2016/03/14 16:21 2016/03/14 16:21
Posted
Filed under 리눅스
root 계정으로

sh -c "$(curl -fsSL http://debian.yeasoft.net/add-btsync-repository.sh)"
apt-get update
apt-get install btsync

편하다~

2016/03/11 16:43 2016/03/11 16:43
Posted
Filed under 리눅스
su - miyu -c /home/miyu/apps/btsync/btsync

miyu라는 계정의 사용자 권한으로 /home/miyu/apps/btsync/btsync 를 실행.


2016/03/11 15:45 2016/03/11 15:45