09 2016 档案

摘要:当请求https的数据时,会要求证书,这时候,加上下面这两个参数,规避ssl的证书检查 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // https请求 不验证证书和hosts curl_setopt($ch, CURLOPT_SSL_VERIF 阅读全文
posted @ 2016-09-28 15:28 优柔寡断 阅读(299) 评论(0) 推荐(0)
摘要:function connect_oracle() { //以下是变量(数据库连接的配置) $host = "127.0.0.1"; $port = "1521"; $sid = "root"; $sname = "root"; $db_user = "root"; $db_pwd = "root" 阅读全文
posted @ 2016-09-05 17:15 优柔寡断 阅读(168) 评论(0) 推荐(0)