I have tried to install php5-mod-json, but it did not help. I would prefer a solution without any other frameworks. PHP version that I am running is 5.4.5 Also I am using nginx and OpenWRT
Thank you in advance.
I have tried to install php5-mod-json, but it did not help. I would prefer a solution without any other frameworks. PHP version that I am running is 5.4.5 Also I am using nginx and OpenWRT
Thank you in advance.
I tried installing the php5-mod-json
. It is working fine for me.
opkg install php5-mod-json
if it doesn't work for you, you need to add the URL http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/oldpackages
in your package list.
// File content 'index.php'
echo json_encode(array('ok'));
Test
root@openWRT:/www/html# php-cli index.php
["ok"]