摘要:
mysql主从配置。鄙人是在如下环境测试的: 主数据库所在的操作系统:win7 主数据库的版本:5.0 主数据库的ip地址:192.168.1.111 从数据库所在的操作系统:linux 从数据的版本:5.0 从数据库的ip地址:192.168.1.112 介绍完了环境,就聊聊配置步骤: 1、确保主 阅读全文
摘要:
"; echo "新数组内容是array(3,4,5,8)"; echo "旧的比新的:".print_r(array_diff($old, $new));//被删掉的数据 echo ""; echo "新的比旧的:".print_r(array_diff($new,$old)); echo ""; $a = array_diff($old,array_diff($old, $new));//应... 阅读全文
摘要:
php等比例缩放图片及剪切图片代码分享 /** * 图片缩放函数(可设置高度固定,宽度固定或者最大宽高,支持gif/jpg/png三种类型) * Author : Specs * * @param string $source_path 源图片 * @param int $target_width 阅读全文
摘要:
在很多网站中都会有使用404页面的时候,在ThinkPHP框架中该如何设置呢,接下来我介绍其中一种方法 1、首先要在Lib/Action 下建立EmptyAction.class.php模块 内容如下: 复制代码 代码如下: display('Public:404'); } } ?> 2、做完以上处理,只能在访问到空模块的时候才会访问404页面,所以,为了访问空方法也访问404页面... 阅读全文
摘要:
无限级折叠菜单JS版 无限级折叠菜单JavaScript版 菜单_1_1 菜单_2_1 菜单_3_1 菜单_4_1 菜单_5_1 菜单_5_2 菜单_4_2 菜单_5_1 菜单_5_2 菜单_3_2 菜单_4_1 菜单_5_1 ... 阅读全文
摘要:
<?php class Helper_Spell{ public $spellArray = array(); static public function getArray() { return unserialize(file_get_contents('pytable_without_tune.txt')); } /** * @d... 阅读全文
摘要:
js解决方式 php解决方式也是同理!! 阅读全文
摘要:
$data = (new \yii\db\Query()) ->select(['user.id','user.username','user.imgs','pet.id as pet_id','pet.pet_name','pet.pet_birth_time','pet.pet_sex','pet.wechat','pet.message','pet.pet_imgs... 阅读全文