`
文章列表
<?php /********************** 一个简单的目录递归函数 第一种实现办法:用dir返回对象 ***********************/ function tree($directory) { $mydir = dir($directory); echo "<ul>\n"; while($file = $mydir->read()) { //防止输出.和.. //if(($file!=".") AND ($file!=" ...
http://blog.sina.com.cn/s/blog_5fc7df450100q7ix.html
非常好的三篇文章:   http://www.poluoluo.com/server/201301/192738.html   http://www.jb51.net/article/30446.htm   http://www.jb51.net/article/27305.htm

微信JS-SDK

http://www.2cto.com/weixin/201505/397852.html
查询及删除重复记录的方法(一)1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断select * from peoplewhere peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1) 2、删除表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断,只留有一个记录delete from peoplewhere peopleId in (select peopleId from people group by peopleId h ...
<a href="javascript:;" class="a-upload"> <input type="file" name="" id="">点击这里上传文件 </a> <a href="javascript:;" class="file">选择文件 <input type="file" name="" id="&qu ...

php透明水印生成

    博客分类:
  • PHP
  <?php /* * Created on 2010-10-27 * BY��QQ542900563 * Copyrights Reserved 2000-2020 * 本例演示图片水印的生成办法 */ //分别载入两张图片 $im=imagecreatefromjpeg("liu.jpg"); $img2=imagecreatefrompng("m.png"); //取得各自的长宽,计算位置 $im_WH=getimagesize("liu.jpg"); $im_W=$im_WH[ ...

jquery checked

//判断库存是否可更改 var checkKucunStatus = function(){ var checkedEle = $(".stdProAttr").find("[type='checkbox']:checked"); if(checkedEle.length){ $("#inventory").attr("readonly", true); } ...
来自 http://txw1958.cnblogs.com/
<a href="a.php?url=www.jb51.net&name=脚本之家">aa</a> <?php //网站生存左面快捷方式---功能 $url = $_GET['url']; $filename = urldecode($_GET['name']); $filename = iconv('GBk','utf-8',$filename);//字符集转换(没有需要转的就不转) if (!$url || !$filename) exit(); $Shortcut = "[InternetShort ...
    LOAD DATA LOCAL INFILE 'C:\\Users\\Administrator\\Desktop\\123.csv' INTO TABLE lz_xiuyu.adminp CHARACTER SET gbk FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '"' LINES TERMINATED BY '\r\n' ( id, `province`, `city`, `location`, `store_type`, `userna ...
css .autocomplete-w1 { background:url(../img/indicator.gif) no-repeat top left; position:absolute; top:0px; left:0px; margin:8px 0 0 6px; /* IE6 fix: */ _background:none; _margin:0; } .autocomplete { border:1px solid #999; background:#FFF; cursor:default; text-align:left; max-height:350px; overflo ...
在action中: $this->getId();//controller $this->getAction()->getId();//或者 $ation->id;   在view中: Yii::app()->controller->id; // controller $this->getAction()->getId(); // action  

Yii常用路径说明

    博客分类:
  • YII
//framework路径 Yii::getFrameworkPath(); //protected/runtime Yii::app()->getRuntimePath(); //在view中得到当前controller的ID方法: Yii::app()->getController()->id; //在view中得到当前action的ID方法 Yii::app()->getController()->getAction()->id; //yii获取ip地址 Yii::app()->request->u ...
安装: yum install -y subversion   更新: yum update subversion   同步: svn co svn://xxxxxxxxx --username hnfeng   提交: svn commit -m “” [directory|file] svn ci -m “” [directory|file]   更新: svn update [directory|file] svn up [directory|file]   查看日志: svn log [directory|file]   增加本地数据到服务器: ...
Global site tag (gtag.js) - Google Analytics