摘要:
进入到Linux系统后,先检测Crontab服务是否安装 检查Crontab工具是否安装 crontab -l 检查Crontab服务是否启动 service crond status 没有安装的话,安装cron 服务操作说明: /sbin/service crond start //启动服务 /s 阅读全文
摘要:
1.文件超出大小,点击删除后,展示信息错误。 上传一个不允许的文件,信息错误; 文件:/ueditor/dialogs/image/image.js 2.谷歌打开很慢的问题 文件: /vendors/ueditor/ueditor.all.js /ueditor/dialogs/image/imag 阅读全文
摘要:
前两天装个虚拟机,尼玛发现网配不好,完全已经忘记怎么配了。还是赶紧复制一篇记下来靠谱点。好记性不如烂笔头。 VMware虚拟机有三种网络模式,分别是Bridged(桥接模式)、NAT(网络地址转换模式)、Host-only(主机模式)。 VMware workstation安装好之后会多出两个网络连 阅读全文
摘要:
linux下定时执行任务的方法 在Linux中你应该先输入crontab -e,然后就会有个vi编辑界面,再输入0 3 * * 1 /clearigame2内容到里面 :wq 保存退出。 在LINUX中,周期执行的任务一般由cron这个守护进程来处理[ps -ef|grep cron]。cron读取 阅读全文
摘要:
/** * 合并图片, * * @param unknown $imgs * @param unknown $realname * @param unknown $userid */ public function mergerImg($imgs,$realname,$userid,$imgpath 阅读全文
摘要:
参考别人的做法,遇到问题上网查,下面就是安装步骤. 一、安装Apache2.2.221、到官网下载 http://httpd.apache.org/download.cgi 2、解压 tar -zxvf httpd-2.2.22.tar.gz3、建立目标文件夹(注意以下所有操作都时在root用户下执 阅读全文
摘要:
html: <form action="<{:AppLink('circle/uploadimg')}>" id="imageform" method="post" enctype="multipart/form-data"> <input name="photoimg" type="file" i 阅读全文
摘要:
判断是否需要旋转 /** *iphone判断图片方向,是否需要旋转图片 */ if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone')&&in_array($ext, array('jpg','png','gif','jpeg','jepg'))){ $exi 阅读全文
摘要:
/** * 将非GBK字符集的编码转为GBK * * @param mixed $mixed 源数据 * * @return mixed GBK格式数据 */ function charsetToGBK($mixed){ if (is_array($mixed)) { foreach ($mixed 阅读全文
摘要:
Date.prototype.Format = function (fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), // 阅读全文