原创 php裏include,include_once, require和require_once的區別

require   和   include   二種方式提供不同的使用彈性。               require   的使用方法如   require("MyRequireFile.php");   。這個函式通常放在   PHP

原创 Apache Rewrite 規則詳解

轉載自:http://wuxiong8665.blog.163.com/blog/static/9351220118411945421/ PS:引自網絡不同地方,供學習 在開篇之前: 我想說這篇文章其實是我剛剛接觸Rewrite的時

原创 Ubuntu 下安裝 nginx, php-fpm 以及mysql

轉載自:http://blog.csdn.net/f0225/article/details/22192747 1、 安裝 Nginx apt-get install nginx 啓動Nginx服務: service nginx

原创 windows下安裝nginx

第一步: 下載nginx,直接將下載好的nginx解壓後放到某個文件夾下就行,下載地址就不提供了 第二步: start.bat,stop.bat和RunHiddenConsole.exe文件放置在nginx的根目錄下,通過該地址http:

原创 Yii 中使用import和components引入組件

使用import: 'import'=>array( 'application.models.*', 'application.components.*', 'applicatio

原创 PHP smarty

/** 默認情況下爲true,始終都會重新編譯,即生成的緩存文件每次都會變化  *  如果設置成false,則在php源文件和tpl文件發生變化的時候會進行重新編譯,緩存文件變化  */ // $smarty->force_compile

原创 Apache 別名與重定向

轉載自:http://my.oschina.net/davehe/blog/101414 當apache接受請求時,在默認情況下會將DocumentRoot目錄中的文件送到客戶端,如果想將一組文件放置在網站上,希望將它們留在本來位置

原创 apache virtualHost配置

1. 編輯httpd.conf,查找Include conf/extra/httpd-vhosts.conf,把前面註釋符號“#”刪掉。2. 編輯httpd-vhosts.conf,我把WAMPServer安裝在D:/wamp,所以我這裏

原创 Windows 下安裝 Memcached(1)

轉載自:http://bzyyc.happy.blog.163.com/blog/static/61430647201131001015214/ 今天突然想在本地機器上安裝個memcached,以便今後做實驗使用。於是就開始試試啦。1.

原创 談談網站防盜鏈

原創作品,允許轉載,轉載時請務必以超鏈接形式標明文章 原始出處 、作者信息和本聲明。否則將追究法律責任。http://windyli.blog.51cto.com/1300305/315283         引子:明明引用了一個正確

原创 PHP session

轉載自:http://blog.csdn.net/f0225/article/details/18814447 <?php class SessionHandle { public function open($savePath

原创 Windows 下使用 Memcached(2)

轉載自:http://www.nowamagic.net/librarys/veda/detail/332 Memcache是danga.com的一個項目,最早是爲 LiveJournal 服務的,目前全世界不少人使用這個緩存項目來構

原创 Yii集成Ueditor

1. 到Ueditor官網下載Ueditor mini版(有PHP,JSP等版本) 2. 將umeditor.config.js, umeditor.min.js文件以及dialogs文件夾、lang文件夾和theme s文件umedit

原创 PHPMailer 騰訊企業郵箱

轉載自:http://blog.csdn.net/f0225/article/details/22052213 注意事項: 郵箱賬戶不能開啓微信動態驗證碼因爲騰訊企業郵箱必須用SSL加密協議(http://service.exmai

原创 Apache htacee 文件示例

以YII爲示例: 在src目錄下的htacee文件示例爲: Options +FollowSymLinks RewriteEngine On AddEncoding gzip .gz AddEncoding gzip .gzip <Fi