转载 | PHP生成缩略图的类库
调用的时候: $image = Helper_Image::createFromFile(‘文件路径’,‘文件保存格式’); $image->resampled(‘’, ‘’); //缩放到100px * 100PX $image-&...
调用的时候: $image = Helper_Image::createFromFile(‘文件路径’,‘文件保存格式’); $image->resampled(‘’, ‘’); //缩放到100px * 100PX $image-&...
查询当天的记录 select * from hb_article_view where TO_DAYS(hb_AddTime) = TO_DAYS(NOW()) 查询当前这周的数据 SELECT name,submittime FROM e...
一、方法一 js的防御方案:将下面这段代码放到网站页面的</body>标签前,这样别人在通过iframe框架引用你的网站网页时,浏览器会自动跳转到你的网站所引用的页面上。 <script> if (self == t...
<?php function subTree($arr, $id=0, $depth=0) { static $tree = array(); foreach ($arr as $key=>$value) { if($value...