随笔分类 -  PHP 随记

摘要:apt-get build-dep php5安装所需依赖包./configure --enable-opcache --prefix=/opt/php --with-apxs2=/usr/bin/apxs2 --with-mysql=mysqlnd --with-mysqli=mysqlnd --w... 阅读全文
posted @ 2014-08-23 15:18 My Game 阅读(201) 评论(0) 推荐(0)
摘要:'coldstar','password'=>'123456.');$cookiepath = $_SERVER["DOCUMENT_ROOT"] .'\\' .MD5($UserURL); //以主域名的MD5值设置为COOKIE文件名$html = curl_post_contents($UserURL,$UserData,$cookiepath); //模拟登陆if($html){ if(stripos($html,'登陆成功')){ $html = curl_get_content 阅读全文
posted @ 2013-09-10 17:45 My Game 阅读(295) 评论(0) 推荐(0)
摘要:/admin/include inc_menu.php 此目录 添加 $moules 的菜单例子$modules['seo_manage']['seo_all_goods'] = 'seo_page.php?t=all_goods';$modules['seo_manage']['seo_brand'] = 'seo_page.php?t=brand';然后 在 /languages/*/admin/common.php 添加 对应的 语言,注 $_LANG['seo_manage' 阅读全文
posted @ 2013-04-28 12:13 My Game 阅读(112) 评论(0) 推荐(0)
摘要:网页输出需要进行 gzip 压缩 以提高传输速度,测试 APACHE 开启gzip 压缩后 php 继续进行压缩 无明显效果 所以 一方开启就可以了 只是本人测试另 apache 2.4 开启 gzip 压缩更改 httpd.conf开启mod_deflate mod_filterDeflateCompressionLevel 6AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-phpAddOutputFilter DEFLATE css js 阅读全文
posted @ 2013-03-21 11:11 My Game 阅读(199) 评论(0) 推荐(0)
摘要:"HTTP/1.1 100 Continue", => "HTTP/1.1 101 Switching Protocols", => "HTTP/1.1 200 OK", => "HTTP/1.1 201 Created", => "HTTP/1.1 202 Accepted", => "HTTP/1.1 203 Non-Authoritative Information", => "HTTP/1.1 204 No Content 阅读全文
posted @ 2013-02-05 14:31 My Game 阅读(324) 评论(0) 推荐(0)
摘要:网上的资料很多 自己记录下 以供使用1.上传kiededotor 到 include 目录下2.修改 /admin/includes/lib_main.php 的 create_html_editor 函数function create_html_editor($input_name, $input_value = ''){ global $smarty; /* $editor = new FCKeditor($input_name); $editor->BasePath = '../includes/fckeditor/'; $editor->To 阅读全文
posted @ 2013-02-02 12:20 My Game 阅读(226) 评论(0) 推荐(0)
摘要:首先 目录结构我基本上是把 文档里面的 有用的直接上传进了 /api/里面然后 分别登陆 处理 、返回文件 分别写在了 qqlogin.php 和 alipaylogin.php 文件里面QQqq_callback(); $open_id = $qc->get_openid(); //根据 OPEN_ID 判断数据 $sql = "SELECT * FROM".$ecs->table('users')." where qq_open_id = '".$open_id."'"; $row = 阅读全文
posted @ 2013-02-01 16:14 My Game 阅读(1294) 评论(0) 推荐(0)
摘要:<?phpinclude ('class/class.phpmailer.php');$config = array( 'host'=>'smtp.163.com', 'port'=>'25', 'user'=>'***', 'passwd'=>'****', 'from'=>'juva_zz@163.com', 'fromname'=>'郑州', 阅读全文
posted @ 2012-11-05 15:40 My Game 阅读(457) 评论(0) 推荐(0)