Monster Oasis
覺得累就是進步的開始!

2008/02/22

Protected: SVN 設定

Filed under: System/Linux/Unix* — 7:53 am

This post is password protected. To view it please enter your password below:


判斷瀏覽器 XMLHttpRequest 的方式 / IE7

Filed under: Programming/javascript — 7:41 am

(more…)

2008/02/20

in_array 的寫法

Filed under: Programming/php — 11:16 am

避免 $user_list 是空的 array 時 出現 Warnning (more…)

Splitting a large Apache log file with PHP

Filed under: Programming/php — Tags: — 9:09 am

[code language='php']
$months = array(
  'Jul' => '07',
  'Aug' => '08',
  'Sep' => '09'
);

$open_file = false;
$fw = false;

$fp = fopen('filename.log', 'r');

while($line = fgets($fp)) {
  preg_match(':([0-9]{2})/(Jul|Aug|Sep):', $line, $matches);
  // $matches[1] = day of month
  // $matches[2] = month name
  $filename = "filename.log.2007{$months[$matches[2]]}{$matches[1]}";
  if($filename != $open_file) {
    if($fw) {
      fclose($fw);
    }
    $fw = fopen($filename, 'a');
    $open_file = $filename;
    echo "$filename\n";
  }
  fputs($fw, $line);
}

fclose($fw);
fclose($fp);
[/code]

Related URL:
  1. Protected: 觀察 22:40 – 23:15 apache log 的變化
  2. 解決用 NFS 當 documentroot 時會當掉的方法
  3. debian / ubuntu 裝 oracle instant client / sqlplus / oci8 / apache2 config / steps by steps
  4. [ubuntu] apache server module 的 enable / disable
  5. apache Custom Log Formats – 好用的參數
  6. Simple Monster Tracking System – step by step
  7. Protected: apache mod_rewrite , rewrite , rewriterule 真難搞
  8. 好用的 iptables rules – 限制 client 連 http port 的次數
  9. Monster LAMP Pack Lite – ver.317
  10. 安裝 apache / mod_memcache

2008/02/19

An A-Z Index of Oracle SQL Commands (version 9.2)

Filed under: DATABASE — 9:10 pm

URL :

http://www.ss64.com/ora/

Oracle Cheat Sheet

Filed under: DATABASE — 9:06 pm

(more…)

各類速查表 cheat sheets ….

Filed under: Programming/php,Software — 8:53 pm

(more…)

wordpress / gentoo / apache / mod_rewrite 的設定

Filed under: Programming/php,System/Linux/Unix* — 8:46 pm

<VirtualHost *:80>
  ServerName toy.monster.tw
  ServerAdmin rimmon@monster.com.tw
  DocumentRoot “/var/www/toy.monster.tw”
  CustomLog /var/www/toy.monster.tw/log/access_log.txt combined

  <Directory “/var/www/toy.monster.tw”>
    Options FollowSymLinks
    AllowOverride All
    # AllowOverride controls what directives may be placed in .htaccess files.
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

(more…)

Role-based access control in SQL, part 2

Filed under: DATABASE,Programming/php,System/Linux/Unix* — 4:55 pm

(more…)

How to build role-based access control in SQL,part 1

Filed under: DATABASE,Programming/php,System/Linux/Unix* — 4:42 pm

(more…)

下頁»

www.monster.com.tw , © Copyright 2008