摘要: 1、停止mysql服务器 sudo /opt/lampp/lampp stopmysql 2、使用`--skip-grant-tables' 参数来启动 mysqld sudo /opt/lampp/sbin/mysqld --skip-grant-tables 3、再开一个终端(在终端中直接右键+ 阅读全文
posted @ 2017-09-11 11:55 夏霁 阅读(1074) 评论(0) 推荐(0) 编辑
摘要: 1、连接Mysql 格式: mysql -h主机地址 -u用户名 -p用户密码1、连接到本机上的MYSQL。首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root -p,回车后提示你输密码.注意用户名前可以有空格也可以没有空格,但是密码前必须没有空格,否则让你重新输 阅读全文
posted @ 2017-09-11 11:47 夏霁 阅读(112) 评论(0) 推荐(0) 编辑
摘要: var width=document.documentElement.clientWidth||document.body.clientWidth;var height=document.documentElement.clientHeight||document.body.clientHeight 阅读全文
posted @ 2017-07-26 10:57 夏霁 阅读(1510) 评论(0) 推荐(0) 编辑
摘要: <?phprequire('PHPExcel/Classes/PHPExcel.php');//引入PHP EXCEL类function format_excel2array($filePath='',$sheet=0){ if(empty($filePath) or !file_exists($f 阅读全文
posted @ 2017-07-26 10:56 夏霁 阅读(2522) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> .a-upload { padding: 4px 10px; height: 20px; line-height: 20px; position: relative; cursor: pointer; color: #888; background: 阅读全文
posted @ 2017-07-26 10:54 夏霁 阅读(462) 评论(0) 推荐(0) 编辑
摘要: $FileName = $file['name'];//获取上传的文件名$Extension = substr($FileName, (strrpos($sFileName, '.') + 1));//找到扩展名$Extension = strtolower($Extension);$FileNam 阅读全文
posted @ 2017-07-14 16:59 夏霁 阅读(815) 评论(0) 推荐(0) 编辑
摘要: <?phpclass PageClass{private $myde_count; //总记录数public $myde_size; //每页记录数private $myde_page; //当前页private $myde_page_count; //总页数private $page_url; / 阅读全文
posted @ 2017-07-13 15:53 夏霁 阅读(164) 评论(0) 推荐(0) 编辑
摘要: if(!empty($_FILES["fileField"]["name"])){//检测表单传递文件数据 $fileinfo = $_FILES["fileField"]; if($fileinfo['size'] < 10000000 && $fileinfo['size'] > 0){//大小 阅读全文
posted @ 2017-07-13 15:47 夏霁 阅读(491) 评论(0) 推荐(0) 编辑