php
jianguangguo
这个作者很懒,什么都没留下…
展开
-
PHP之curl实现http与https请求的
httpget方式function httpGet($url){ $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $res=json_decode(curl_exec($curl),true);...转载 2018-05-19 15:39:33 · 1592 阅读 · 0 评论 -
php log
error_log($newtime, 3, "errors.log");只需要在需要记录的地方,插入error_log,就可以日志记录了。前提是必须在php.ini中开启errorlog支持。原创 2018-05-19 22:22:48 · 222 阅读 · 0 评论 -
php+apache配置
第一部分1,准备文件httpd-2.4.23-x64-vc14-r3.zipphp-5.6.26-Win32-VC11-x64.zip2,解压,找到C:\gjg\Apache24\conf下面的httpd.conf文件。3,配置程序根路径Define SRVROOT "C:\gjg\Apache24"ServerRoot "${SRVROOT}"4,配置项目跟路径DocumentRoot "D:/...原创 2018-05-20 07:44:00 · 177 阅读 · 0 评论