上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: #1.安装Apache yum install httpd httpd-devel #启动apache/etc/init.d/httpd start #设为开机启动:chkconfig httpd on #2.安装mysql yum install mysql mysql-server mysql-... 阅读全文
posted @ 2015-07-30 09:41 boystar 阅读(239) 评论(0) 推荐(0) 编辑
摘要: cd /usr/local/src #进入软件包存放目录chmod 777 -R #赋予权限wget https://github.com/nicolasff/phpredis/archive/phpredis-2.2... 阅读全文
posted @ 2015-07-29 23:23 boystar 阅读(159) 评论(0) 推荐(0) 编辑
摘要: save("xxx.xlsx");//直接输出到浏览器$objWriter = new PHPExcel_Writer_Excel5($objPHPExcel);header("Pragma: public");header("Expires: 0");header("Cache-Control:m... 阅读全文
posted @ 2015-07-29 22:03 boystar 阅读(334) 评论(1) 推荐(0) 编辑
摘要: IsSMTP(); //使用SMTP方式发送 $mail->Host = "发送者邮箱smtp"; //您的企业邮局域名 $mail->SMTPAuth = true; //启用SMTP验证功能 $mail->Username = "发送者邮箱... 阅读全文
posted @ 2015-07-29 22:01 boystar 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1.打开.vimrc文件。#打开配置文件vim /root/.vimrc2.配置.vimrc文件。"解决中文乱码问题set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936set termencoding=utf-8set encoding=u... 阅读全文
posted @ 2015-07-22 13:23 boystar 阅读(187) 评论(0) 推荐(0) 编辑
摘要: #例子 #设置端口号为82 ServerName localhost #服务器名称 DocumentRoot "d:/Web" #文档目录 #结束 阅读全文
posted @ 2015-07-22 10:59 boystar 阅读(436) 评论(0) 推荐(0) 编辑
摘要: //ThinkPHP验证码类使用$config = array( 'fontSize' => 30, // 验证码字体大小 'length' => 3, // 验证码位数 'useNoise' => false, // 关闭验证... 阅读全文
posted @ 2015-07-22 10:50 boystar 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1.为使.htaccess有效,需要先做httpd.conf设置#打开改写模式Options FollowSymLinks AllowOverride All#打开重写模式,去掉这行注释LoadModule rewrite_module modules/mod_rewrite.so2..htacce... 阅读全文
posted @ 2015-07-22 10:47 boystar 阅读(1098) 评论(0) 推荐(0) 编辑
摘要: 16个快捷函数用法1.A() 实例化控制器 格式:[资源://][模块/]控制器A($name,$layer='',$level='')@param string $name 资源地址 @param string $layer 控制层名称 @param integer $level 控制器层次 ... 阅读全文
posted @ 2015-07-21 14:09 boystar 阅读(337) 评论(0) 推荐(0) 编辑
摘要: TP框架自带文件上传类使用:类文件在ThinkPHP/Library/Think/默认在目录下public function upload(){ $upload = new \Think\Upload(); // 实例化上传类 $upload->ma... 阅读全文
posted @ 2015-07-21 10:47 boystar 阅读(483) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页