原创 apache vhost 虛擬配置問題

昨天在服務器上爲apache建立虛擬配置,加入vhost後發現訪問一直是403. 如果把虛擬配置去掉則正常訪問這就排除用戶權限問題,後來查看log日誌error裏面有這麼幾行 Symbolic link not allowed or

原创 圖圖片

示例圖片啊 點贊 收藏 分享 文章舉報 戰鬥生活 發佈了187 篇原創文章 · 獲贊 5 · 訪問量 17萬+ 私信

原创 xml簡單功能

<?php header("Content-Type:text/xml;"); $product = array( array( 'p_id' => '1',

原创 HTTP協議相關

由於最近在寫接口主要爲移動端app提供數據 幾個問題: 1) 就是客戶端獲取數據後是否需要關閉長連接 也就是說把 connection 設置爲 colose而不是keeplive ? 點贊 收藏 分

原创 phpexcel 讀取數據

http://extjs.org.cn/fatjames/archives/379 require_once '/home/PHPExcel_1.8.0/PHPExcel/IOFactory.php';

原创 安裝memcached

http://u.sanwen.net/subject/242335.html ./configure --prefix=/usr/local/libmemcached --with-memcached ./configure --

原创 nginx 下 thinkphp 502 bad Gateway + "LNMP一鍵安裝包的Nginx 502 Bad Gateway錯誤可能原因及解決方法"

參考: http://lnmp.org/faq/lnmp-Nginx-502-Bad-Gateway.html 如果是非上述原因: 請找到nginx.conf中 找到這一行 include enable-php.conf;  然後打開

原创 linux cant not connect to mysql server 10060 防火牆問題

http://blog.csdn.net/zhu_xun/article/details/16897035  #/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT  #/etc

原创 JS插件收藏

1.  countUp.js 下載地址: https://github.com/inorganik/countUp.js

原创 Linux load average負載量分析與解決思路

http://blog.csdn.net/u011183653/article/details/19489603

原创 zend studio 12.0.1.v20141210-1054 破解

http://dl.download.csdn.net/down10/20150829/329844d6a4734805680f9de59b217cf4.rar?response-content-disposition=attachmen

原创 合併excel

合併多個excel. http://zhidao.baidu.com/link?url=1DZS8ivyvvO4iiQLUv9oGHXevUnTkCEJRWISGF7oaBTgMvvAZK9pjk3n9mFhqUcBYu_xx5oTx

原创 Yii2 render 和 renderPartial 問題

如果把layouts中main文件全部清除 在控制器中用render渲染可能得不到你想要的畫面,此時你應該用renderPartical .

原创 Linux下php擴展安裝

1.  openssl 安裝 cd php-5.6.21 cd ext cd openssl /usr/local/php/bin/phpize cp config0.m4 config.m4 /usr/local/php/bin/ph

原创 file_get_content 和 curl 抓取數據問題

由於域名在備案中 通過瀏覽器訪問域名直接跳轉到域名備案未通過的testpage,  但是通過測試 發現file_get_content   能抓到真實數據,  而 curl抓不到 俗話說curl比 file_get_contents強大