這篇文章受密碼保護,請輸入密碼後查看內容。

cabuchi 發表在 痞客邦 留言(1) 人氣()

HTTP Request method包含如下:
1. GET 把資料附在URI上,取得想要的資訊,限制為1024字元(GET的回應是可以被快取的)
2. POST 在body塞含機敏性的資料,傳給指定的URI做處理(一般POST不會被快取,但伺服器設定Cache-Control或Expires標頭,仍可以對POST的回應做快取)
3. OPTIONS 列出所有該Web Server 有支援的 http method

cabuchi 發表在 痞客邦 留言(2) 人氣()

每個瀏覽器都有自己的設定
有可能關掉整個瀏覽器,cookie還是在的情境發生(無言...)
不然正常來說,沒有設定expire time的cookie,關掉瀏覽器就會清掉了。
參考:http://www.dotblogs.com.tw/yc421206/archive/2013/12/13/133987.aspx

cabuchi 發表在 痞客邦 留言(0) 人氣()

在我們生存的社會裡
我背後總會不自覺的被貼上標籤
自己所喜歡的 卻需要妥協周遭而委曲求全
遵循主流的價值 但又落的自我尋無
是否可悲?

cabuchi 發表在 痞客邦 留言(0) 人氣()

function awardiconIndex($lang,$id){
$content = array();
$dir = "../gamerzone/upload/award/";
if (is_dir($dir)){
$dh = opendir($dir);
chdir ($dir);
while (($file = readdir($dh)) !== false) {
if (is_dir($file) && basename($file)!='.' && basename($file)!='..'){
getDirList($file);
}
else if($this->filename($file) != "." && $this->filename($file) != ".."){
$content[] = $file;
}
}
chdir("../");
closedir($dh);
}
var_dump($content); //印出dir資料夾裡面的全部檔案
}
function filename($file)
{
$path_parts = pathinfo($file);
return basename($file, $path_parts['extension']);
}

cabuchi 發表在 痞客邦 留言(0) 人氣()

在PHP 5.4以前,实现这样的进度条并不容易,主要有三种方法:

使用Flash, Java, ActiveX
使用PHP的APC扩展
(PHP 5.4之前需要另外安裝下載php_apc_3_0_19.dll就可以使用)
使用HTML5的File API

cabuchi 發表在 痞客邦 留言(0) 人氣()

<{for $foo=1 to 50}>
            <option value="<{$foo}>"><{$foo}></option>
<{/for}>

cabuchi 發表在 痞客邦 留言(0) 人氣()

$("#btn1").bind('click',function(){
    //       
})
$("#btn1").trigger("click");

cabuchi 發表在 痞客邦 留言(0) 人氣()

用AJAX送出表單後,會希望將欄位裡面的值全部清空
$("form[name='pressForm']").find(":text,textarea,input").each(function() {
          $(this).val("");
      });

cabuchi 發表在 痞客邦 留言(0) 人氣()

在CI出現錯誤提示:
Message: A non well formed numeric value encountered

是少了strtotime
date
("Y-m-d",strtotime($_GET['start_date']));

cabuchi 發表在 痞客邦 留言(0) 人氣()

隱藏網址上的index.php
把以下程式加到.htaccess裡面(在application裡面可以找到此檔案)
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule^(.*)$ /index.php/$1 [L]

cabuchi 發表在 痞客邦 留言(0) 人氣()

/*  get the image height */
function heightItem(){
  $("div.gallery .image img").load(function(){
  var height = $(this).height();
  alert(height);
  });
}

cabuchi 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。