LNMP:Nginx+PHP Ci框架配置注意事项 CodeIgniter php.ini 修改: cgi.fix_pathinfo=1 nginx/vhost/ 域名配置: server { listen 80; server_name www.wizzer.cn wizzer.cn; root “/data/www/www.wizzer.cn”; location / { index ind… 更多
原创:帝国CMS7.0批量上传图片集插件 版本特点: 1、使用系统自带的水印系统,勾选即可使用; 2、可勾选生成缩略图。 使用方法: 1、将 uploadify 文件夹解压至 ../e/extend/ 2、系统–>数据表与系统模型–>管理数据表–>图片系统数据表–>管理字段–> morepic 修改: 将“输入表单替换html代码.html”文件内容… 更多
帝国CMS:头部导航栏当前栏目高亮 /e/class/userfun.php function currentPage($classid,$thisid){ global $class_r; $fr=explode(‘|’,$class_r[$classid][featherclass]); $topbclassid=$fr[1]?$fr[1]:$classid;//取得第一级栏目id if ($topbclassid==$this… 更多
Windows :Nginx + PHP 配置虚拟目录 首先配置好运行环境: windows下配置nginx+php环境 其次修改nginx配置文件: server { listen 80; server_name localhost; location ~ ^/bbs/.+\.php$ { alias E:/xuetang/cn/bbs; rewrite /bbs/(.*\.php?) /$1 break; fastcgi_index index.p… 更多
PHP:POST发送JSON字符串 /** * 发送post请求 * @param string $url 请求地址 * @param array $post_data post数据 * @return string */ function send_post($url, $post_data) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POS… 更多
PHP webservice客户端 推送文章和附件(xsd:base64Binary) <?php //设定字符集 header(‘Content-Type:text/html;charset=utf-8’); //调用webserver接口class类 require_once(‘./lib/nusoap.php’); require_once(‘Article.class.php’); //封装文章信息类 require_once(‘Attribute.class.php’… 更多