摘要:将PHPMailer.class.php 和 Smtp.class.php放在ThinkPHP\Library\Vendor下引用 PHPmailer文件function send_mail_local($to = '', $subject = '', $body = '', $name = '',...
阅读全文
摘要:/** * 使用curl进行连接 * * @access private * @param string $url 远程服务器的URL * @param string $params 查询参数...
阅读全文
摘要:function GetMonth($sign="1"){ //得到系统的年月 $tmp_date=date("Ym"); //切割出年份 $tmp_year=substr($tmp_date,0,4); //切割出月份 $tmp_mon =substr($tmp...
阅读全文
摘要:首先我们在controllers文件夹中建立一个admin文件夹.第一种方法:直接在后台建立控制器,比如AdminController.php 里面正常的写上我们的内容.在路由表中,Route::get('admin','AdminController@index');我们发现程序报错,说无法找到控...
阅读全文
摘要:首先进入apache官网http://httpd.apache.org/download.cgi选择要下载的版本点击Other files点击binaries/选择win32/就可以下载到msi的文件了,openssl表示可以使用https协议,no表示不可以第一步:下载安装的文件 1. MySQ...
阅读全文
摘要:安装composer可以使用composer.setup.exe来直接安装也可以使用一下步骤windows首先需要安装curl32位系统安装地址:http://home.arcor.de/skanthak/download/curl-7.38.0.cab64位系统安装地址:http://curl.h...
阅读全文
摘要://$url = $_SERVER['REQUEST_URI'].(strpos($_SERVER['REQUEST_URI'],'?')?'':"?").$this->parameter; $url = $_SERVER['REQUEST_URI']; //echo $...
阅读全文
摘要:一、配置httpd.conf# Virtual hosts#Include conf/extra/httpd-vhosts.conf //取消这一行的#二、配置httpd-vhosts.conf文件1.多IP模式 DocumentRoot "E:/www/htdocs" //虚拟主机文件夹 Serv...
阅读全文
摘要:php+apache 解决上传文件过大问题博客分类:phpPHPApache用php+apache上传文件的时候,由于文件过大,容易导致上传失败,解决办法:修改php.ini中:upload_max_filesize 2m 即允许上传文件大小的最大值。默认为2M ,大小可以根据你 的需要进行修改po...
阅读全文