>>157
正規表現とmktime()でなんとかしる

>>158
http://jp2.php.net/manual/ja/function.ob-clean.php
あたりかこの近辺かと

>>159
Perl程それをスマートに書く記述はないと思う