php json 설치

· 13년 전 · 1203
 
 
 
php json 설치
 
 
 
tar xvjf php-json-ext-1.2.1.tar.bz2
 
cd php-json-ext-1.2.1
./configure
make
 
cd modules/
cp -pv json.so /usr/lib/php/modules/
 
php.ini
 
extension_dir = "/usr/lib/php/modules"
extension=json.so
 
아파치 재시작
 
/usr/local/apache/bin/apachectl graceful
 
 
php -i | grep json
json
json support => enabled
json version => 1.2.1
 
 
 
php test.php
{"test":100}
 
cat test.php
<?
$val = array("test"=>100);
$out = json_encode($val);
echo $out;
?>
 
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
13년 전 조회 449
13년 전 조회 1,376
13년 전 조회 344
13년 전 조회 391
13년 전 조회 710
13년 전 조회 503
13년 전 조회 421
13년 전 조회 557
13년 전 조회 560
13년 전 조회 404
13년 전 조회 2,203
13년 전 조회 1,299
13년 전 조회 1,204
13년 전 조회 404
13년 전 조회 370
13년 전 조회 453
13년 전 조회 690
13년 전 조회 487
13년 전 조회 1,053
13년 전 조회 1,140
13년 전 조회 858
13년 전 조회 1,875
13년 전 조회 2,205
13년 전 조회 5,478
13년 전 조회 398
🐛 버그신고