php列出文件和目录,区分目录和文件
1101浏览量function getFileList($directory) {//获取文件列表。这个函数非常危险!!!!!!这个谨慎使用,可以列出服务器上的任何位置文件 $files = array(); if(is_dir($directory)) { if($files = scandir($directory)) { $files = array_slice($files,2); &n
作者:访客
datepicker使用教程实例,简单
1063浏览量http://www.umji.sjtu.edu.cn/ji_js/date/styles/glDatePicker.flatwhite.css
http://www.umji.sjtu.edu.cn/ji_js/date/glDatePicker.js
我给改了一下,原装的那个时间不对,出现的日期
作者:访客
飞飞影视系统feifeicms设置伪静态
1076浏览量cat .htaccess Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^zuzhou.ren [NC] RewriteRule ^(.*)$ http://www.zuzhou.ren/$1 [L,R=301] RewriteCond %{HTTP_HOST} ^xilibala.com [NC] RewriteRule ^(.*)$ http://www.xilibala.com/$1 [L,R=301] #weijingtai RewriteRule ^movie-(.*)$ index.php
作者:访客
centos 6.5安装lamp环境实战
1150浏览量1、安装Apache
[root@localhost ~]# yum -y install httpd
# 开机自启动
[root@localhost ~]# chkconfig httpd on
# 启动httpd 服务
[root@localhost ~
作者:访客
linux find -size 大小范围 查找一些文件并删除
1242浏览量find folder -size +10c -and -size -5000c -printf "%s\t%P\n"
找到folder里面的10字节到5000字节之间的文件,并输出大小和名字
find 14 -size +10c -and -size -6000c | xargs rm -rf
找到这些文件并删除
作者:访客
JS图片加载失败用默认图片代替
997浏览量前些天遇到个需求,就是图片加载失败之后显示默认图片,那么到底应该如何判断图片加载失败呢,今天我们来说一说。
onerror属性
<img src="images/showImg.jpg" onerror="this.onerror=null; this.src='images/default.jpg' />
jquery.error
$('img').error(function(){
$(this).attr('src',"default.jpg");
})
作者:访客
我都告诉你们不要瞎搞长城宽带
1269浏览量(长宽就是)一个大局域网,长城宽带用户没有公网 IP,访问不同的网络资源会走不同的出口,ip.cn和ip138.com显示你的IP会是不同的,这样的分配会造成非常多的故障,经常性的丢包……
他的公网IP都是他自己虚拟出来的。上网的时候会一会儿走这个出口,一会儿那个,所以会感觉到时快时慢。有时候就根本上不了网。
比如,你可以直接用dos的tracert来测试
也可以开个SSH来测试。
长宽一年100块,我都不给他!!
作者:访客
tar文件夹打包 排除某些文件及文件夹
963浏览量3
# cd /opt/backup/tar # tar -zcvf backup/tar/ji.sjtu.edu.cn.20160705.tar.gz --exclude *.flv --exclude *.rmvb --exclude *.exe --exclude *.rar --exclude ji_upload/qrcode/* ji.sjtu.edu.cn/ # tar -zcvf umji.sjtu.edu.cn.20160705.tar.gz --exclude *.flv --exclude *.rmvb --exclude *.mp4 --exclude *.avi --exclude&n
作者:访客
centos 6.5安装lamp环境
952浏览量1、安装Apache
[root@localhost ~]# yum -y install httpd
# 开机自启动
[root@localhost ~]# chkconfig httpd on
# 启动httpd 服务
[root@localhost ~]# service httpd start
### 安装apache 一些扩展
root@localhost