Time of Update: 2016-08-08
前言 iis7.5是安裝在win7、win8裡的web伺服器,win2003、win2000的web伺服器使用的是iis6.0,由於win7、win8系統相比win2003、win2000有了改新革面的不同,因此對於iis7.5的配置也必需搗鼓一翻才能熟悉。不過這些都是操作性的東西,就如當初第一次接觸iis6.0那樣,操作過幾遍就慢慢熟悉了。
Time of Update: 2016-08-08
PHP函數PHP SPL,被遺落的寶石 -- 簡明現代魔法PHP SPL筆記 - 阮一峰的部落格PHP filter_input_array() 函數oraclepdo_oci 串連 oracle 資料庫_掂量 -- 夜遊人_百度空間pdo 連oracle - 老A的專欄 - 部落格頻道 - CSDN.NET其他mysql資料庫同步檢查監控指令碼實現(轉) - drrrrr5的專欄 - 部落格頻道 - CSDN.NETBlowFish密碼編譯演算法在php的使用 - 濤光 -
Time of Update: 2016-08-08
php-curl-curlopt_httpheader設定host http://www.gosoa.com.cn/php-curl-curlopt_httpheader%E8%AE%BE%E7%BD%AEhost基於PHP的cURL快速入門教程 (小偷採集程式) http://www.jb51.net/article/27293.htmPHP中CURL方法curl_setopt()函數的一些參數 http://blog.csdn.net/superbirds/article/details/7
Time of Update: 2016-08-08
Mobile_Detect 是一個輕量級的開源行動裝置(手機)檢測的 PHP Class,它使用 User-Agent 中的字串,並結合 HTTP Header,來檢測行動裝置環境。這個裝置檢測的 PHP 類庫最強大的地方是,它有一個非常完整的庫,可以檢測出所用的裝置類型(包括操作類型,以及手機品牌等都能檢測)和瀏覽器的詳細資料。http://mobiledetect.net///使用執行個體 include 'Mobile_Detect.php';$detect = new
Time of Update: 2016-08-08
Java猶如宮澤賢治的《不畏風雨》中出現的、性格木訥的女孩子。從小就由於遲鈍和大食量等特徵被別人當作笨蛋,從小學入學開始進入田徑部、堅持跑步,在中長跑中經常取得好成績,給人以活潑的印象。是十分努力的女孩子。她的家境並不算好。父親Sun是有才能的藝術家,但不擅長理財,在她14歲的時候因為苦於借債積勞成疾而去世。她被Oracle叔叔收養,那時還與Google叔叔之間因為對她的扶養權問題而引起爭端並鬧上法庭。在周圍的人都擔心,正值青春期時她在這樣的處境下會不會一蹶不振的時候
Time of Update: 2016-08-08
關於bind方法:- 這兩種綁定相同,在$app->make()的時候,都返回一個新的執行個體 $this->app->bind('App\DAO\UserDAO',function(){ return new UserDAOImpl(); }); $this->app->bind('App\DAO\UserDAO','App\DAO\Impl\UserDAOImpl'
Time of Update: 2016-08-08
代碼如下:date_default_timezone_set('PRC'); //預設時區 echo "今天:",date("Y-m-d",time()),""; echo "今天:",date("Y-m-d",strtotime("18 june 2008")),""; echo "昨天:",date("Y-m-d",strtotime("-1 day")), ""; echo "明天:",date("Y-m-d",strtotime("+1 day")
Time of Update: 2016-08-08
我們前面說過在類裡面聲明“--”開始的方法名的方法(PHP給我們提供的),都是在某一時刻不同情況下自動調用執行的方法,“__toString()”方法也是一樣自動被調用的,是在直接輸出對象引用時自動調用的, 前面我們講過對象引用是一個指標,比如說:“$p=new Person()“中,$p就是一個引用,我們不能使用echo 直接輸出$p, 這樣會輸出”Catchable fatal error: Object of class Person could not be converted to
Time of Update: 2016-08-08
閱讀源碼的最好方式就是跟蹤調試代碼,這裡介紹了如何利用GDB調試nginx的配置和步驟。修改設定檔修改nginx.conf:#user nobody;master_process off;daemon off;daemon off;表示關閉守護進程模式,這樣就免除了用GDB跟蹤fork出的子進程了。如果預設啟用守護進程,標準輸出是被關閉的。因此關閉守護進程模式能夠利用printf方便查看變數的值。 master_process
Time of Update: 2016-08-08
1、刪除字串的第一個字元:$string='';foreach($arrayas$key => $value){ $string .= ",$value";}$string = substr($string,1);2、定義頁面編碼格式:meta http-equiv=content-type content="text/html;
Time of Update: 2016-08-08
1、 安裝建議下載openresty ,包比較全,安裝簡單方便; 下載地址 http://openresty.org/download/ngx_openresty-1.7.10.1.tar.gz2、編譯安裝tar xzvf ngx_openresty-1.7.10.1.tar.gzcd ngx_openresty-1.7.10.1./configure --with-luajitmakemake install3、修改nginx config -
Time of Update: 2016-08-08
工作過程中需要編譯php擴充的dll格式檔案 , 經過1天的折騰,終於編譯出來了,下面以編譯php5.3.28 下runkit擴充為例 , 官方的windows環境下php編譯過程參考下面這兩篇文章:https://wiki.php.net/internals/windows/stepbystepbuildhttp://blog.csdn.net/mycwq/article/details/10165955php5.3.28 , runkit編譯的過程基本就是跟文檔一致 ,
Time of Update: 2016-08-08
一、 緩衝原理:IE:將資源檔儲存至本地Smarty:將緩衝儲存到伺服器編譯 二、 為什麼使用緩衝技術1、提升網站訪問速度2、減輕web伺服器壓力3、減輕資料庫伺服器壓力三、 設定緩衝1、在smarty中,設定緩衝主要通過以下幾行代碼:l $smarty->setCacheDir($cache_dir)設定緩衝目錄將來產生的快取檔案會自動放在這個目錄下l
Time of Update: 2016-08-08
nginx 反向 Proxy及動靜分離http { include mime types; default_type application octet-stream; tcp_nopush on; keepalive_timeout 65;upstream test{ shttp { include mime.types; default_type application/octet-stream; #tcp_nopush on;
Time of Update: 2016-08-08
進入設定檔:vi /usr/local/webserver/nginx/conf/nginx.confupstream www.linux.com{ server 192.168.1.204:80; } proxy_cache_path /data0/htdocs/www/aaa levels=1:2 keys_zone=aaa:20m max_size=1g; server { listen 80;
Time of Update: 2016-08-08
一個頁面中,有些資料緩衝,有些資料不緩衝,就是局部緩衝l $smarty->assign(“var”, “value”, true)第三個參數:表示是否不緩衝l {$var nocache=true}在模板變數量後使用nocache參數l
Time of Update: 2016-08-08
php //查詢多條記錄,返回二維數組 $result = M("admin")->select(); $result = M("admin")->where("id>2")->select(); $result = M("admin")->where("id>2")->order("id desc")->limit("0,5")->field("id,username,psssword")->select(); $result =
Time of Update: 2016-08-08
1,預設安裝nginxsudo apt-get install nginx如果找不到就sudo apt-get update一下2,進入nginx配置目錄cd /etc/nginx3,建立自己項目的nginx設定檔cd nginx.dtouch aaa.conf4,配置自己項目的代理upstream imdou8{ server localhost:8000;}server{ listen 80; server_name 104.128.**.**; location / {
Time of Update: 2016-08-08
修改nginx/conf/nginx.conf,修改完後如下:user www www;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}http { include
Time of Update: 2016-08-08
一 簡介web程式工作原理圖:傳統的web程式工作原理圖:Ajax工作原理圖:1、 關於Ajaxl Asynchronous 非同步l JavaScriptl Andl XMLAjax就是利用javascript與xml和伺服器互動資料的一種技術Xml:Json:2、 發展曆程l 1998年 誕生l 2005年 流行3、 運行平台l Google Chromel Mozillal Firefoxl Internet Explorerl