Announce

PukiWiki contents have been moved into SONOTS Plugin (20070703)

php

PHPのメモ

Table of Contents

XAMPP

cygwin

ln -s /cygdrive/c/Program\ Files/xampp/php/php.exe ~/bin/php
ln -s /cygdrive/c/Program\ Files/xampp/php/pear.bat ~/bin/pear

phpDocumentor

http://sourceforge.net/project/showfiles.php?group_id=11194

C:\Program Files\xampp\php\PhpDocumentor

cygwin

vi ~/bin/phpdoc
php /cygdrive/c/Program\ Files/xampp/php/PhpDocumentor/phpdoc $*
chmod 755 ~/bin/phpdoc
phpdoc -f pkwkdownloader.php -t ./doc -o HTML:Smarty:PHP
ls doc/default

うーん、見やすいとは思えんのだが、なぜだろう

Practical Tips

and / or 演算子は 代入文よりも後に評価されます。

$dp = @opendir($dir) or die($dir . ' is not found or not readable.');

means

( $dp = @opendir($dir) ) or die($dir . ' is not found or not readable.');

&& / || 演算子は代入文よりも先らしい?

$dp = @opendir($dir) || die($dir . ' is not found or not readable.');

means

$dp = ( @opendir($dir) || die($dir . ' is not found or not readable.') );