原创 phpmailer郵箱發送
// 引入PHPMailer的核心文件 require_once("../common/PHPMailer-master/src/PHPMailer.php"); require_once("../common/PHPMa
原创 php調試錯誤
ini_set("display_errors","on"); error_reporting(E_ALL);
原创 linux 下rabbitmq的安裝以及設置遠程用戶訪問
首先需要安裝erlang 參考:http://fedoraproject.org/wiki/EPEL/FAQ#howtouse ① 執行後如果報錯可忽視 rpm -Uvh http://download.fedoraproject.o
原创 耗時耗內存查詢
$t1 = microtime(true); // ... 執行代碼 ... $m1 = memory_get_usage(); $t2 = m
原创 php爬蟲 curl 爬蟲 原生爬蟲 中國天氣網天氣爬蟲
1.curl 爬蟲 $url = "http://www.weather.com.cn/weather/101120501.shtml"; $ch = curl_init($url); //初始化會話 cu
原创 阿里雲的短信發送使用教程
—— github 地址 https://github.com/aliyun/openapi-sdk-php-client/blob/master/docs/1-Installation-CN.md?spm=a2c4g.1118662
原创 LARAVEL 一些小知識點
1.配置未找到404錯誤 App\Exceptions\Handler render 方法里加入 if (!($exception instanceof AuthenticationException)) {
原创 Linux下php的Phalcon擴展安裝
官網地址http://www.myleftstudio.com/reference/install.html#linux-solaris 步奏 git clone --depth=1 git://github.com/dream
原创 windows下php redis擴展
https://windows.php.net/download/ windows redis擴展 http://windows.php.net/downloads/pecl/releases/redis/2.2.7/ http://wi
原创 返回前一個windows時刷新前一個windows
<script src=" https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script> <script> //這裏的test可以
原创 nginx 不支持pathinfo 實現tp框架正常運行
在 server 裏添加 下面代碼就OK了 location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }
原创 自定義彈出框居中顯示
話不多少直接上代碼 1.css內容 .mask{position:fixed;left:0;right:0;top:0;bottom:0;font-size:0;text-align:center;background:rgba(0,0
原创 點擊html內任意圖片放大,再點擊關閉放大圖片
HTML 代碼 <div id="outerdiv" style="text-align: center;position: fixed;z-index: 1000;top: 0;left: 0; width: 100%;hei
原创 apache 中實現 laravel框架去掉url中包含的index.php後綴
在 .htaccess 文件內容如下條件時 / 不是在如下條件自測 <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews
原创 linux升級php至5.6
1 查看終端當前php版本 php -v 會反饋以下信息: PHP 5.4.35 (cli) (built: Nov 14 2014 07:04:10) Copyright (c) 1997-2014 The PHP Group Zend