admin ADMIN


เข้าร่วมเมื่อ: ตอบ: 12
|
ตอบ: 09/06/2010 12:29 pm ชื่อกระทู้: How to install json in php |
|
|
One of my server needs JSON installation , and I use this way to install in PHP , CENTOS machine.
1.Login to shell prompt with user credentials (which allows you to install stuff on server).
Execute command
Update and don't forget to have updated GNU GCC , php-devel
2.Once done that, You will require to install Pear based JSON support by following command.
If the last line is OK ,, you get that json , pay attention if you need some other dependency in case you've fail to install.
3.You will also require to enable JSON support in php.ini
Smart way to do that is, create a new file in /etc/php.d/ called json.ini
The file should contain this line: extension=json.so
4.Finally, restart the HTTP (Apache) Server by command: service httpd restart _________________ HOTLINE 081-6521851 |
|