黄聪

论SEO对人类的重要性,请看我的博客:hcsem.com

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

09 2017 档案

摘要:数据库连接失败could not find driver在调试一个PHP程序时,报了这个错误, could not find driver 经过一番查找,结合自己的思考和实践,终于找到了问题所在. 原来我的这个程序中用到了PDO对象, 连接mysql 5. 在PHP的默认设置中,只打开了php_pd 阅读全文
posted @ 2017-09-30 23:04 黄聪 阅读(884) 评论(0) 推荐(0) 编辑

摘要:public static string GetCookie(string requestUrlString, Encoding encoding, ref CookieContainer cookie) { //向服务端请求 HttpWebRequest myRequest = (HttpWebRequest)We... 阅读全文
posted @ 2017-09-13 12:38 黄聪 阅读(2037) 评论(3) 推荐(3) 编辑

摘要:$head = wp_get_http_headers( $word_url ); $cookie = $head['set-cookie']; $cookie = substr( $cookie, 0 , strpos( $cookie, ";" ) ); 阅读全文
posted @ 2017-09-03 10:50 黄聪 阅读(327) 评论(0) 推荐(0) 编辑

摘要:$args = array( 'user-agent' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36', 'headers' => array( ... 阅读全文
posted @ 2017-09-03 07:57 黄聪 阅读(307) 评论(0) 推荐(0) 编辑