随笔分类 - PHP 随记
摘要:apt-get build-dep php5安装所需依赖包./configure --enable-opcache --prefix=/opt/php --with-apxs2=/usr/bin/apxs2 --with-mysql=mysqlnd --with-mysqli=mysqlnd --w...
阅读全文
摘要:'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
阅读全文
摘要:/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'
阅读全文
摘要:网页输出需要进行 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
阅读全文
摘要:"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
阅读全文
摘要:网上的资料很多 自己记录下 以供使用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
阅读全文
摘要:首先 目录结构我基本上是把 文档里面的 有用的直接上传进了 /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 =
阅读全文
摘要:<?phpinclude ('class/class.phpmailer.php');$config = array( 'host'=>'smtp.163.com', 'port'=>'25', 'user'=>'***', 'passwd'=>'****', 'from'=>'juva_zz@163.com', 'fromname'=>'郑州',
阅读全文

浙公网安备 33010602011771号