php json ext,php-json-ext-1.2.1.tar.bz2

这是php-json-ext-1.2.1.tar.bz2下载,文件管理系统,用户在线管理数自己的远程文件-extjs+ php file system manage.

软件介绍

php-json-ext-1.2.1.tar.bz2是现在从事PHP网站开发的人员并不在少数,使用ExtJs的人更加不在少数,但很多PHP程序员并不熟悉Javascript,但又非常喜欢使用ExtJs.以前他们只能看着JAVA或者.NET的开发者可以使用服务器端的语言来写ExtJs,现在PHP中也有了类似的框PHP-EXT .

软件说明

cd php-json-ext-1.2.0

4.编译前要初始化PHP环境:

phpize如果提示找不到该命令,就 apt-get install php5-dev 安装它。

5.编译和安装 Json

sudo ./configure

sudo make

sudo make install

安装完毕出现如下信息:

Installing shared extensions: /usr/lib/php5/20060613+lfs/

6.修改php.ini

在php.ini 中加入 extension=php_json.so:

sudo vi /etc/php5/apache2/php.ini

7. 重启阿帕奇

sudo /etc/init.d/apache2 restart

8.查看PHP环境信息

我们看到 如下信息说明安装成功

json support

相关介绍

The PHP-Ext Open Source Project

PHP-Ext is an open source widget library written for PHP 4 and 5 to empower the UI Layer.

It is based on Ext JS javascript widgets which provide a standard and powerful API to build Rich Internet Applications. It basically works as a convenient wrapper for the Ext JS Javascript Objects.

Among other features, PHP-Ext provides useful and common controls to create forms, rich comboboxes, powerful grids and menus. It also promotes the use of JSON and XML client/server communication to populate forms and grids using Ajax. Additionally it has a Javascript helper to ease the javascript code generation and use.

This project still in beta so keep comming for the final release. Take a look at the samples.

Feel free to download the src and samples to try it out and don't forget to write back your comments and suggestions.

软件截图

8936fe071b8a93fad5dde3473946e07a.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
JsonRPC 2.0 Client and Server ============================= 轻量级 Json-RPC 2.0 客户端和服务端的php扩展,基于 multi_curl epoll的并发客户端,依据[jsonrpc](http://www.jsonrpc.org/)协议规范。 服务端: $server = new Jsonrpc_Server(); // style one function variable $add1 = function($a, $b){     return $a   $b; }; $server->register('addition1', $add1); // style two function string function add2($a, $b){   return $a   $b; } $server->register('addition2', 'add2'); // style three function closure $server->register('addition3', function ($a, $b) {     return $a   $b; }); //style four class method string class A  {   static public function add($a, $b)   {     return $a   $b;   } } $server->register('addition4', 'A::add'); echo $server->execute(); //output >>> //{"jsonrpc":"2.0","id":null,"error":{"code":-32700,"message":"Parse error"}} 客户端: $client = new Jsonrpc_Client(1); $client->call('http://localhost/server.php', 'addition1', array(3,5)); $client->call('http://localhost/server.php', 'addition2', array(10,20)); $client->call('http://localhost/server.php', 'addition3', array(2,8)); $client->call('http://localhost/server.php', 'addition4', array(6,15)); /* ... */ $result = $client->execute(); var_dump($result); //output >>> /* array(2) {   [0]=>   array(3) {     ["jsonrpc"]=>     string(3) "2.0"     ["id"]=>     int(110507766)     ["result"]=>     int(8)   }   [1]=>   array(3) {     ["jsonrpc"]=>     string(3) "2.0"     ["id"]=>     int(1559316299)     ["result"]=>     int(30)   }   ... } */

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值