
php
yunshouhu
爱Java,更爱Android,学VC,搞c/c++的我。专注移动安全,游戏安全,逆向安全!十年戎马成神路,君临天下风雷动! https://github.com/yunshouhu
展开
-
JSON-RPC轻量级远程调用协议介绍及使用
http://blog.youkuaiyun.com/hahahacff/article/details/29119077json-rpc参数:http://127.0.0.1:8080/index.json?method=getSystemProperties&id=3325235235235¶ms=JTViJTVkhttp://www.json-rpc.org/wiki/imple转载 2015-06-06 19:46:00 · 2593 阅读 · 0 评论 -
java和php实现JSON-RPC 实例
php server:<?php//http://php.net/manual/en/class.soapserver.phpinclude 'entitys.php';require_once 'Zend/Json/Server.php';$server = new Zend_Json_Server();$server->setClass('Calculator');i原创 2015-06-06 19:55:16 · 6865 阅读 · 0 评论 -
phprpc 使用实例
PHPRPC 是一个轻型的、安全的、跨网际的、跨语言的、跨平台的、跨环境的、跨域的、支持复杂对象传输的、支持引用参数传递的、支持内容输出重定向的、支持分级错误处理的、支持会话的、面向服务的高性能远程过程调用协议。遇到的问题总结:Fatal error: Cannot redeclare gzdecode() in1、重命名compat.php、phprpc_client.php的gzd原创 2015-06-09 16:48:35 · 4824 阅读 · 0 评论 -
php json接口demo
<?phpclass Student{ public $no; public $username; public $password;}$student=new Student();$student->no=11;$student->username='xxx';$student->password='hehe';echo json_encode($stu原创 2015-05-25 18:13:59 · 6844 阅读 · 0 评论 -
hprose rpc使用实例
php server<?php require_once('src/Hprose.php'); function hello($name) { echo "Hello $name!"; return "Hello $name!"; } function e() { throw new Exception("I am原创 2015-06-15 11:16:28 · 9505 阅读 · 4 评论 -
ubuntu 14.04上源码编译安装php7
wget https://downloads.php.net/~ab/php-7.0.0alpha2.tar.bz2//用winscp把下载好的文件上传到网站中tar jxf php-7.0.0alpha2.tar.bz2安装:sudo apt-get updatesudo apt-get install libxml2-dev安装gccsudo apt-get instal转载 2015-12-09 13:56:49 · 10456 阅读 · 0 评论 -
Ubuntu 下php调用c语言.so文件
写一个php模块(php extension),在php中调用该模块内的函数,再通过该模块来调用so中的函数。首先做一个简单的so文件:/*** gcc -O -c -fPIC -o hello.o hello.c * gcc -shared -o libhello.so hello.o*/int hello_add(int a, int b){ re转载 2016-12-02 16:06:57 · 642 阅读 · 0 评论 -
使用C语言来扩展PHP,写PHP扩展dll
以前写过一次PHP扩展DLL,那个是利用调用系统的COM口实现的扩展,与PHP不能真正融合。心血来潮,研究了一下PHP的源码,网上找了一些资料,自己尝试写了一个扩展DLL,测试没问题。下面记录一下具体扩展方法: 1、首先从www.php.net网站上下载php源码,此处以php-5.2.17版本为例,下载后解压至E:盘根目录下(目录可以自己随意定)。 2、下载安装VC++ 6.转载 2016-12-02 16:08:05 · 1822 阅读 · 0 评论 -
Ubuntu下编译实现PHP的c扩展
转自:http://blog.youkuaiyun.com/qian_f/article/details/27226895Ubuntu版本:14.041. 下载PHP-5.5.10.tar.bz2,并解压。wget http://cn2.php.net/distributions/php-5.6.0.tar.xzwget http://cn2.php.net/distributi转载 2017-06-01 20:01:47 · 1049 阅读 · 0 评论