谁知道php 写webservice服务器端? 执着收几个参数:如pid title cotent参数插入数据库 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 搜索一下:PHP Web Services 入门概要 可以看一下 soapserver 这个类:http://cn2.php.net/manual/en/class.soapserver.php <?php//soapserverfunction insertSql($pid,$title,$content){ //sql insert if(true) { return true; } else { return false; }}$server = new SoapServer(null, array('uri' => "http://test-uri/"));$server->addFunction('insertSql');$server->handle();?><?php //soapserver$client = new SoapClient(null, array('location' => "http://127.0.0.1/test/csdn/soapserver.php",'uri' => "http://test-uri/"));$parm=array('pid'=>$pid,'title'=>$title,'content'=>$content);$client->__soapCall('insertSql',$parm);?> 先写一个function 做这个写完后加一点点东西就是webservice了 求教 用JS验证邮箱格式是否正确 问个基础问题,希望高手们帮帮忙 html里面的数据不经过表单提交怎么能让php读取 zengframwork 求教 对SQL的疑惑 关于几率的问题 请给我讲个后台操作提交并显示返回结果的大体构思 请问PHP的升级。 谁作过信息采集?能给点设计思路么(不知道我这么想是否合理)?谢谢, kindeditor上传图片的时候,为什么提示找不到临时文件? PHP替换字符串问题 php 写入 mssql 2005 中文都是乱码 ,但是写入到mysql就正常,高手给个解决办法呀?
<?php
//soapserver
function insertSql($pid,$title,$content)
{
//sql insert
if(true)
{
return true;
}
else
{
return false;
}
}
$server = new SoapServer(null, array('uri' => "http://test-uri/"));
$server->addFunction('insertSql');
$server->handle();
?>
<?php
//soapserver
$client = new SoapClient(null, array('location' => "http://127.0.0.1/test/csdn/soapserver.php",
'uri' => "http://test-uri/"));
$parm=array('pid'=>$pid,'title'=>$title,'content'=>$content);
$client->__soapCall('insertSql',$parm);
?>
写完后加一点点东西就是webservice了