Languages/PHP(17)
-
구글 oauth2 구현시 no application name 이라고 나오는 경우
구글 oauth2 구현시 no application name 이라고 나오는 경우 https://cloud.google.com/console#/project 로 접속 후 프로젝트 이름 선택 -> APIS & auth 선택 -> Consent screen 선택 정보 입력 http://stackoverflow.com/questions/18677244/error-invalid-client-no-application-name
2014.02.05 -
php에서 memcache 사용하기
1. memcache 설치 apt-get install memcache php.iniextension=memcache.so 추가 2. php 에서 memcache 연결 $mem = new memcache;$mem->connect('localhost',11211); 3. 캐쉬 등록 $mem->set('key',$value); 4. 캐쉬 사용 $mem->get('key'); 참조:http://www.solanara.net/solanara/memcached
2013.09.02 -
Fatal error: Call to undefined function socket_create() in C:\APM_Setup\htdocs\port.php on line 16
Fatal error: Call to undefined function socket_create() in C:\APM_Setup\htdocs\port.php on line 16 php_socket.dll 을 로드 시킨다.
2013.06.07 -
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 8414921 bytes)
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 8414921 bytes) php.ini 에서 설정된 최대 메모리 용량을 초과하는 작업을 실행 하였기 때문 해결 1 소스 상단에 ini_set('memory_limit',-1); 해결2php.ini 파일 내용중 memory_limit = 값 을 늘려준다.
2012.11.20 -
Fix `ereg is deprecated` errors in PHP 5.3
If you upgraded to PHP 5.3, chances are high you’re going to run into a few warnings or deprecated function messages. An example is the ereg family of functions, which are gone for good, as they were slower and felt less familiar than the alternative Perl-compatible preg family. To migrate ereg(): ereg('\.([^\.]*$)', $this->file_src_name, $extension); becomes preg_match('/\.([^\.]*$)/', $this->f..
2012.11.20 -
[PHP] Assigning the return value of new by reference is deprecated
$foo = &new Class(); 이렇게 하는 경우 'Assigning the return value of new by reference is deprecated'라는 메시지가 나오는데 해석 그대로다. 참조를 시키는 건 바로 받아서 쓸 수 없다는 얘기다. $foo = newClass();$hoo = &$foo; 또는 php.ini 파일에서 error_reporting = E_ALL & ~E_DEPRECATED display_errors = Off 로 에러 출력 자체를 없애는 것
2012.11.20