//测试 请求接口 public function index(){ $arr = array('a'=>'555','b'=>56454564); $data=$this->post_json_data('http://www.test.com/public/index/api/postTest',json_encode($arr)); dump(json_decode($data['result'],true)); } //测试 接口 public function postTest
今天在运行程序时报错: Fatal error:Call to undefined function curl_init()... 在网上查了一下,是因为php_curl.dll扩展没有开启的缘故,于是有了下面的操作: 在win7操作系统中配置好httpd.conf.php.ini后能够成功部署php程序至apache.但是将程序移植到win2008后同样的配置却报Call to undefined function curl_init()错误.google.百度了N久,有以下解决方法: 1.在
使用phpmailer出现连接失败, 代码是别人已经封装好的没有问题,可能原因有如下. qq提示: SMTP server error: mail from address must be same as authorization user 163提示:SMTP connect error之类的 第一, php.ini里的两个都要打开,其实很多人的都是打开的 ;extension=php_sockets.dll ;extension=php_openssl.dll 第二, 代码中的 $mail