php
xiawu1990
项目经理,精通java,php,ecshop 2次开发,thinkphp ,yii
展开
-
WampServer 打造 https 站(上) 图文详解
1 .声明 我的wampserver 路径 是 C:\wamp wampserver 的版本是 WampServer Version 2.5 Apach 的版本是 2.4.9 操作系统是 win10; 本机局域网id 192.168.31.108 步骤 1. 把 C:\wamp\bin\apache\apache2.4.9\bin 的 ssleay32.dll,libeay32.d原创 2015-12-09 23:39:36 · 12734 阅读 · 6 评论 -
thinkphp 异步访问耗时操作
/** * 耗时异步操作 * @param $url 模板 模块名称/控制器/方法?参数名=参数值 * */function asyncronous($url){ if(empty($url)){ return array("flag"=>false,"msg"=>"参数不正确"); } if(strpos($url, "/")==0)原创 2016-11-05 15:58:50 · 3575 阅读 · 0 评论 -
php Tree 操作
php Tree 操作 1.跟具某个节点获 它和它所有的子节点function getMenuTree($arrCat, $parent_id = 0, $level = 0) { static $arrTree = array(); //使用static代替global if( empty($arrCat)) return F原创 2016-10-17 22:35:19 · 711 阅读 · 0 评论 -
php excel 在ie 下显示乱码问题
// **** 下面的$title 是文件要导出的文件名称 $ua = $_SERVER["HTTP_USER_AGENT"]; if (strpos($ua,'MSIE')!==false || strpos($ua,'rv:11.0')) { header('Content-Disposition: attachment; filename="原创 2016-12-03 23:17:35 · 328 阅读 · 0 评论 -
thinkphp调用存储过程的完整案例
1,使用navicate 新建一张表,表结构如下2.创建一个存储过程DROP PROCEDURE IF EXISTS `abc`;CREATE PROCEDURE `abc`(IN `c_id` int,OUT `c_name` varchar(254),OUT `c_age` int)BEGIN #Routine body goes here...SELECT name,age in原创 2016-12-09 11:19:54 · 12877 阅读 · 0 评论 -
php 功能函数应用
1.array去除重复的 对象$arr=array(array('age'=>11,'name'=>'张三'),array('age'=>11,'name'=>'张三')); array_uniq($arr); //echo array(array('age'=>11,'name'=>'张三'));原创 2016-12-26 16:03:25 · 222 阅读 · 0 评论 -
php (带cookie)模拟get/post 方法下载excel
//postfunction curl_post($header,$data,$url) { $ch = curl_init(); $res= curl_setopt ($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, C原创 2016-12-19 17:35:11 · 4680 阅读 · 0 评论 -
apache 配置域名+日志
<VirtualHost *:80> DocumentRoot "C:/wamp/www/product/" ServerName product.com ErrorLog "|bin/rotatelogs.exe logs/product_error-%Y%m%d.log 86400 480" CustomLog "|bin/rotatelogs.exe logs原创 2017-02-09 17:54:37 · 1253 阅读 · 0 评论 -
Hbuilder 使用技巧
1, hbuilder 上 修改git密码 a,右键项目 =》team–>remote–>config push upstream =》然后点击change原创 2017-05-23 11:02:18 · 2076 阅读 · 0 评论 -
基于thinkphp5+Avant模板的后台管理系统
废话不多说 直接进入主题 后台演示地址 http://demozwzl.ocmcom.com/admin/main/login.html 账号 demozwzl 密码 demozwzl 源代码下载地址 http://download.csdn.net/detail/xiawu1990原创 2017-06-16 09:46:53 · 13150 阅读 · 4 评论 -
php include 的妙用
$param=include "1.php";//$param=1$param1=include "2.php";//$param1=array("a"=>"a");1.php内容如下<?phpfunction test(){ //普通的php}2.php内容如下<?phpreturn array("a"=>"a");原创 2016-09-20 21:19:25 · 1032 阅读 · 0 评论 -
PHP如何实现网址伪静态(图文解说)
效果图 工程目录 访问地址具体操作步骤 1.找到 httpd.conf 文件,再找到“LoadModule rewrite_module”,将前面的”#”号删除即表示取用该功能。 2. 找到http.config 替换所有的AllowOverride None 为AllowOverride All 3. 在网站更目录下 新建 .htaccess 文件 内容为如下 4 <IF原创 2016-08-22 17:46:59 · 4251 阅读 · 1 评论 -
80端口被NT kernel & System 占用pid 4
sc config http stat = demandrebootrun the command(netsh http show servicestat)as administrator在你使用这个命令之前,你可以按照下面步骤禁用http.sys:net stop httpSc config http start= disabled 具体详情 参考 http://www.2cto.c原创 2016-05-27 09:48:10 · 391 阅读 · 0 评论 -
wampserver 打造https 站点(下)
*Step3*** -> Edit the httpd.conf file and php.ini 3a) In httpd.conf file, remove the comment ‘#’ at the line which says: LoadModule ssl_module modules/mod_ssl.so 3b) In httpd.conf, remove the comment原创 2015-12-09 23:51:26 · 1946 阅读 · 0 评论 -
hbuilder 导入git 项目
1.在www 目录下 右键 gitclone 点击确定 2 在hbuilder 中点击 文件 –》导入 3 4原创 2016-03-08 17:56:52 · 16354 阅读 · 1 评论 -
wampYou don't have permission to access / on this server (WampServer 配置域名后 内网能访问 外网不能访问)
置域名 httpd.conf文件 2 httpd-vhosts.conf Virtual hostsInclude conf/extra/httpd-vhosts.confWampServer 出现 wampYou don’t have permission to access / on this server (配置域名后 内网能访问 外网不能访问)解决步骤 1.2原创 2015-11-25 12:19:03 · 3341 阅读 · 0 评论 -
thinkcmf (thinkphp) 集成 ping++
1.去ping++ 官网下载 php 版本的sdk https://github.com/PingPlusPlus/pingpp-php2.下载完后 解压 并重命名此文件夹为 PingppSDK 3.开始写测试代码 找到此目录下的IndexController 4.找到_initialize() 方法 并在里面插入一行代码 Vendor(‘PingppSDK.init’); 5.添原创 2015-11-17 10:32:38 · 2385 阅读 · 0 评论 -
thinkphp ajax 前后端代码展示
thinkphp 中 ajax 的实用案例原创 2015-10-23 10:16:53 · 646 阅读 · 0 评论 -
Your port 80 is actually used by :Server: Microsoft-HTTPAPI/2.0
Your port 80 is actually used by :Server: Microsoft-HTTPAPI/2.0原创 2015-09-26 11:55:46 · 17280 阅读 · 2 评论 -
基于ecshop 下拉框模糊匹配的集成
步骤 1. 下载文件包 并且解压 2. 将 dropbg.gif 放到 admin/images 目录下 3. 将 searchbox.js 放到 admin/js 目录下 4. 将styles.css放到 admin/styles 目录下 5. 打开 goods_info.htm 并将searchbox.js 添加到 {insert_scripts files=”../js原创 2015-02-05 22:55:30 · 1541 阅读 · 0 评论 -
获取微信昵称时 过滤特殊字符
/*** $str 微信昵称**/ public function filter($str) { if($str){ $name = $str; $name = preg_replace('/\xEE[\x80-\xBF][\x80-\xBF]|\xEF[\x81-\x83][\x80-\xBF]/', '',原创 2016-07-26 15:55:07 · 27489 阅读 · 1 评论 -
微信中使用支付宝支付
微信中使用alipay由于支付宝和微信互相封杀,在微信中无法使用阿里的产品,但是可以通过一个小技巧 在微信中使用alipay:前奏就不用讲了,先去alipay 把wab 端支付的demo 下下来。。。。。 前面的步骤模仿demo 下面是关键步骤//建立请求$html_text = $alipaySubmit->getHtml($parameter);//要显示的内容$content = '原创 2016-07-26 11:27:57 · 738 阅读 · 0 评论 -
wamp+阿里云+https
wamp+阿里云+https进入案例云控制后台 详情 http://www.chinaz.com/web/2017/0105/639110.shtml具体配置 1,先按阿里云相关ssh 相关配置 进行调试 2,在httpd-ssh.conf中 修改成如下配置DocumentRoot “E:/wamp/www/heart” ServerName heart.ocmcom.com:443 S原创 2017-04-26 20:22:34 · 1847 阅读 · 0 评论