http://www.arckid.com/blog/amfphp/how-to-add-install-json-support-to-php-on-centos-in-10-steps/ We are using staging server inside our organization ( CentOS ) to test the applications that we work on. We heavily use AMFPHP based PHP servic
http://www.arckid.com/blog/amfphp/how-to-add-install-json-support-to-php-on-centos-in-10-steps/
We are using staging server inside our organization (CentOS) to test the applications that we work on. We heavily use AMFPHP based PHP services to do communication between business logic and client front end in flash.
Team requested to have native JSON support for PHP and I found a very simple way to do it as following:
- Login to shell prompt with user credentials (which allows you to install stuff on server).
- Execute command yum update “*php*”
- This should update all PHP related components to the latest version. (Assuming you installed yum etc., on CentOS)
- Once done that, You will require to install Pear based JSON support by following command.
- pecl install json
- This will install JSON, simply wait and cross your fingers! If it says OK in last 2 lines, everything is fine so far.
- 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
- Finally, restart the HTTP (Apache) Server by command: service httpd restart
Done! Here is the all keyboard actions together, after you logged in:
yum update “*php*”
pecl install json
cd /etc/php.d/
echo “extension=json.so” >> json.ini
service httpd restart

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

禅工作室 13.0.1
功能强大的PHP集成开发环境

SublimeText3汉化版
中文版,非常好用

MinGW - 适用于 Windows 的极简 GNU
这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。

PhpStorm Mac 版本
最新(2018.2.1 )专业的PHP集成开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)