随笔分类 -  PHP

摘要:1,get方法 $result = file_get_contents($personUrl); 2,post方法,使用querystring,使用json $personUrl="http://www.wacloud.net/open/persion/insert?appid=$doorAppid 阅读全文
posted @ 2019-07-22 20:32 blues-lee 阅读(568) 评论(0) 推荐(0)
摘要:注意网上的教程和你的不一样,如果安装多个php版本,如果安装的宝塔,那么php的文件路径在/www/server/php/55/bin/下面,过程有些不同 下载地址:http://sourceforge.net/projects/php-screw/ tar zxf php_screw-1.5.ta 阅读全文
posted @ 2019-07-07 23:21 blues-lee 阅读(636) 评论(0) 推荐(0)
摘要:wamp和lnmp的血泪经验 wamp和lnmp的血泪经验 wamp和lnmp的血泪经验 一定要区分系统,使用合适的网络服务apahce适合windows,nginx适合linux 阅读全文
posted @ 2019-03-05 18:05 blues-lee 阅读(606) 评论(0) 推荐(0)
摘要:require_once APP_PATH . '/Common/ORG/PHPExcel/PHPExcel.php'; require_once APP_PATH . '/Common/ORG/PHPExcel/PHPExcel/Writer/Excel2007.php'; $objExcel = 阅读全文
posted @ 2018-10-22 16:32 blues-lee 阅读(289) 评论(0) 推荐(0)
摘要:/** 把用户输入的文本转义(主要针对特殊符号和emoji表情) */ function userTextEncode($str){ if(!is_string($str))return $str; if(!$str || $str=='undefined')return ''; $text = json_encode($str); //暴露出unicode ... 阅读全文
posted @ 2018-08-13 12:06 blues-lee 阅读(399) 评论(0) 推荐(0)
摘要:1,php $urlcode="https://api.weixin.qq.com/sns/oauth2/access_token?appid=$this->appidweb&secret=$this->appsecretweb&code=$code&grant_type=authorization 阅读全文
posted @ 2018-08-05 10:11 blues-lee 阅读(1868) 评论(0) 推荐(0)
摘要:[XDebug]xdebug.profiler_output_dir="D:\phpstudy\PHPTutorial\tmp\xdebug"xdebug.trace_output_dir="D:\phpstudy\PHPTutorial\tmp\xdebug"zend_extension="D:\ 阅读全文
posted @ 2018-06-19 15:14 blues-lee 阅读(2314) 评论(0) 推荐(0)