2005-12-29 Thu
PHPとWebアプリケーションのセキュリティについて
- Summary
PHPでWebアプリケーション開発を行う際の留意点.
悪いコード例と検証コードを紹介.
- php.ini 基本の設定
magic_quotes_gpc = Off; session.use_trans_sid = 0; session.use_only_cookie = 1 session.auto_start = 0;
- Reference
PHP と Web アプリケーションのセキュリティについてのメモ
http://www.asahi-net.or.jp/~wv7y-kmr/memo/php_security.html#PHP_Session
はてなダイアリーのヘルプ - はてなダイアリーXSS対策
http://hatenadiary.g.hatena.ne.jp/keyword/%e3%81%af%e3%81%a6%e3%81%aa%e3%83%80%e3%82%a4%e3%82%a2%e3%83%aa%e3%83%bcXSS%e5%af%be%e7%ad%96
- via
高木浩光@自宅の日記 - 2005-12-27 - 「サニタイズ言うなキャンペーン」とは何か
http://takagi-hiromitsu.jp/diary/20051227.html#p02
2005-12-26 Mon
PhpMyBorder - PHP で角が丸い枠を簡単に作るライブラリ
- Sample
<?php require_once 'phpMyBorder2.class.php'; $pmb = new PhpMyBorder(); echo $pmb->begin_round('260px', 'DDDDFF', '78AAFF'); ?> コンテンツの内容 <?php echo $pmb->end_round(); ?>
- Screen shot

- Reference
PhpMyBorder - add round corners by CSS
http://www.phpmyborder.com/
PhpMyBorder - Resouces and links to rounded corners, boxes and edges tutorials
http://www.phpmyborder.com/round_corners5.php
- via
cl.pocari.org - 2005-12-19 - PHP で角丸枠 (CSS) を簡単に作る方法
http://cl.pocari.org/2005-12-19-2.html
2005-12-26 Mon
Cheat Sheets Collection
- Reference
Perl Cheat Sheet
http://juerd.nl/site.plp/perlcheat
Perl Cheat Sheet
http://ali.as/devel/cheatsheet.html
Perl Cheat Sheet
http://goldenink.com/perl/perlcheat.html
PHP Cheat Sheet
http://www.ilovejackdaniels.com/php/php-cheat-sheet/
JavaScript Cheat Sheet
http://www.ilovejackdaniels.com/javascript/javascript-cheat-sheet/
CSS Cheat Sheet
http://www.ilovejackdaniels.com/css/css-cheat-sheet/
mod_rewrite Cheat Sheet
http://www.ilovejackdaniels.com/cheat-sheets/mod_rewrite-cheat-sheet/
Vim Commands Cheat Sheet
http://bullium.com/support/vim.html
Cheat Sheet Roundup
http://www.petefreitag.com/item/455.cfm
2005-12-24 Sat
PHP Calendar
- Reference
Keith Devens - PHP Calendar
http://keithdevens.com/software/php_calendar
- via
PHPSPOT開発日記 - 2005-12-14 - カレンダー出力用の便利モジュール:PHP Calendar
http://phpspot.org/blog/archives/2005/12/php_calendar.html
2005-12-22 Thu
サニタイズの基本
- SQLインジェクション
| MySQL | PHP | $sql = mysql_escape_string($sql); |
| MySQL | Perl | $sql =~ s/'/''/g; $sql =~ s/\\/\\\\/g; |
| PostgreSQL | PHP | $sql = pgsql_escape_string($sql); |
| PostgreSQL | Perl | $sql =~ s/'/''/g; $sql =~ s/\\/\\\\/g; |
| SQLite | PHP | $sql = sqlite_escape_string($sql); |
- OSインジェクション
| Linux | PHP | $str = escapeshellarg($str); |
| Linux | Perl | $str =~ s/'/\\'/g; |
- XSS
| PHP | $str = htmlspecialchars($str); |
| Perl | $str =~ s/</</g; |
- Reference
入門 Ajax: 本 - pp.16
2005-11-25 Fri
debugConsole
- Reference
debugConsole
http://www.debugconsole.de/
- via
cl.pocari.org - 2005-11-18 - JavaScript のポップアップウィンドウで PHP のデバッグを行うことができる debugConsole
http://cl.pocari.org/2005-11-18-1.html
2005-11-17 Thu
RAP - RDF API for PHP
- Reference
RAP - Rdf API for PHP
http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/
- via
Web KANZAKI - RAPによるRDF/XMLのチェックと視覚化
http://www.kanzaki.com/works/2005/rap/graph-check
2005-11-16 Wed
PEAR のプロトコルアップデート
$ pear search Proxy
WARNING: channel "pear.php.net" has updated its protocols, use
"channel-update pear.php.net" to update
$ su
# pear channel-update pear.php.net
Retrieving channel.xml from remote server
Update of Channel "pear.php.net" succeeded
2005-11-08 Tue
phpFormGenerator
- Summary
form生成
- Reference
SourceForge - phpFormGenerator
http://phpformgen.sourceforge.net/
- via
phpspot開発日誌 - 2005-11-07
http://phpspot.org/blog/archives/2005/11/phpformgenerato.html
2005-11-08 Tue
PHPCodeAnalyzer
- Reference
PHPCodeAnalyzer
http://bluga.net/projects/PHPCodeAnalyzer/
- via
phpspot開発日誌 - 2005-11-08
http://phpspot.org/blog/archives/2005/11/phpcodeanalyzer.html
2005-11-08 Tue
ドキュメント化されていない関数
- Reference
http://zend.com/phpfunc/nodoku.php
- via
phpspot開発日誌 - 2005-11-08
http://phpspot.org/blog/archives/2005/11/post_12.html
2005-11-08 Tue
2005-11-08 Tue
JpGraph - PHP Graph Creating Library
JpGraph - PHP Graph Creating Library
http://www.aditus.nu/jpgraph/
JpGraph : PHP4とPHP5に対応したグラフ生成ツール - アシアル株式会社
http://www.asial.co.jp/products/jpgraph/
PHP でグラフを作る (gd/JpGraph編)
http://www.gadgety.net/shin/tips/unix/php-gd.html
PHPで高機能なグラフ生成ライブラリーJpGraphを使ってグラフを描いてみました・・・
http://www.linkclub.or.jp/~ma3ki/webutil/jpgraph/howtomake-jpgraph.html
2005-10-25 Tue
PHPで mysql系関数が利用できない
- php.iniを編集
extension=/usr/local/lib/php/20020429-debug/mysql.so
2005-10-25 Tue
iconvでコンパイルエラー
- Summary
Solaris 8で PHP make中に以下のエラー
/path/to/php/ext/iconv/iconv.c: In function `zm_startup_miconv':
/path/to/php/ext/iconv/iconv.c:175: `_libiconv_version' undeclared (first use in this function)
/path/to/php/ext/iconv/iconv.c:175: (Each undeclared identifier is reported only once
/path/to/php/ext/iconv/iconv.c:175: for each function it appears in.)
- 対処法
# mv /usr/include/iconv.h /usr/include/iconv.h.bak
# ln /usr/local/include/iconv.h /usr/include/iconv.h
- Reference
日本ではたらく社長のブログ | 【備忘録】php5.1インストール
http://ieiriblog.jugem.jp/?eid=659
2005-10-25 Tue
PHPのインストールでエラー
- エラー
fatal : relocation error: file /usr/local/lib/libstdc++.so.6: symbol __eprintf: referenced symbol not found
It works fine without --enable-xslt and
--with-xslt-sablot=/usr/local/.
I may have a Sablotron issue.
- Reference
PHP Resources -> PHP Help - #33425 [Fbk->Opn]: Symbol Referencing Error loading Apache Module __eprintf: referenced symbol not
http://www.php-resources.org/help/article-php.bugs-80819.php
#33425 [Opn->Csd]: Symbol Referencing Error loading Apache Module __eprintf: referenced symbol not
http://www.mail-archive.com/php-bugs@lists.php.net/msg66667.html
