2006-07-01から1ヶ月間の記事一覧
オリジナルのソース: mimeDecode.php $tmp = explode('--' . $boundary, $input); for ($i = 1; $i < count($tmp) - 1; $i++) { $parts[] = $tmp[$i]; }変更後のソース: mimeDecode.php $tmp = explode('--' . $boundary, $input); if( count($tmp) == 2 ) $…
http://www.kozupon.com/security/ssl_source.html
httpd.conf を以下のように編集する <Directory /> Options FollowSymLinks # AllowOverride None AllowOverride All <- これ </Directory> 例 http://www.hatena.ne.jp/以下のページからのリンクのみ許可 SetEnvIf Referer "^http://www\.hatena\.ne\.jp" ref_ok order deny,allow de…
pack, unpackの使い方 print unpack('H*', '@gmail.com'); 40676d61696c2e636f6d print pack('H*', '40676d61696c2e636f6d'); @gmail.com print unpack('h*', '@gmail.com'); <--hだとエンディアンが逆になる。 0476d61696c6e236f6d6 print pack('h*', '0476…
1時間に一度、タイムサーバーと時刻を同期するコマンドを、cronに登録。 # crontab -lcron編集画面で以下のように設定。 58 * * * * /usr/sbin/ntpdate -s clock2.redhat.com
メモリ1GBのMySQLのサンプル [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwo…
<html> <body> <% Response.Write "Hello World" %> </body> </html>
/etc/httpd/conf.d/ の適当な設定ファイルに以下を追加。 PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlSetVar ReloadDirectories "/var/www/mod_perl" PerlSetVar ReloadDebug On