리눅스/php 10

php 쿼리로 호출해보기.

define("DB_HOST", "IP주소");define("DB_USER", "호출할DB유저명");define("DB_PASSWORD", "유저패스워드");define("DB_NAME", "DB명");define("DB_PORT", "DB 포트"); $conn = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME, DB_PORT);$query = "호출해볼 쿼리명 적어넣기";ex) $query = "CALL SP_STATS_all ('ilsan', '2020-01-01', '2020-12-10', '', '', 'Y', 'Y', 'Y', 'Y', '', '', '', '', '', '', '', '', '', '', '', '', '', '..

리눅스/php 2021.01.06

./configure: error: the HTTP XSLT module requires the libxml2/libxsltlibraries. You can either do not enable the module or install the libraries.

nginx 설치를 진행하다 오류가 발생했다. ./configure: error: the HTTP XSLT module requires the libxml2/libxsltlibraries. You can either do not enable the module or install the libraries. 위와같은 error 발생시 yum -y install libxslt-devel 설치 완료후 다시 컴파일을 하면 해당오류는 넘어갈수있다.

리눅스/php 2020.11.03

Centos7 환경에서 php imap 관련 error (configure: error: utf8_mime2text)

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. # wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/epel-release-7-11.noarch.rpm # yum install epel-release-7-11.noarch.rpm # wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm # yum install remi-release-7.rpm # yum upd..

리눅스/php 2019.08.07

php openssl 동적 모듈설치

1. 설치 # cd /usr/local/src/php-5.3.21/ext/openssl // php 소스 폴더의 ext/openssl 디렉토리로 이동 # /usr/local/php/bin/phpize# ./configure --enable-openssl --with-php-config=/usr/local/php/bin/php-config# make# mkdir /usr/local/php/modules# cp -arp modules/openssl.so /usr/local/php/modules/ 2. 연동 # vi /usr/local/apache/conf/php.iniextension=/usr/local/php/modules/openssl.so 그리고 아파치를 재시작 해주면 적용이 완료됩니다. # /usr/..

리눅스/php 2014.11.23

파일 업로드 용량 확보

upload_max_filesize = 20M 게시판이나 기타 PHP 를 이용하여 자료를 올리는 경우 최대 올릴 수 있는 용량.쵀대 파일 업로드 사이즈.post_max_size = 30MPost 방식으로 넘겨질 최대 데이터 사이즈 (업로드 파일 크기 + 메일 본문등의 텍스트 크기)최대 전송(업로드) 용량.max_execution_time = 30스크립트가 실행할 수 있는 최대 시간 (PHP 를 이용하여 실행될 최대 시간) 최대 시간을 넘기면 에러가 발생함.잘못 쓰여진 스크립트가 서버를 멈추는 것을 방지.대용량 파일일수록 업로드 시간이 많이 걸리므로 당연히 실행시간을 늘려주어야 함.0: 무제한 (Infinite) 시간.기본값: 30.max_input_time = -1스크립트가 입력 데이터를 받아들이는 최대..

리눅스/php 2014.11.23

Warning: phpinfo(): It is not safe to rely on the system's timezone settings

Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone...

리눅스/php 2014.11.23