php
リファレンス関係の Notice があまりにうるさかったのでサクッとパッチ。 人力で機械的に(なにそれ)やったので、もしかしたらどこかでバグッてるとかメモリの無駄遣いとかしてるかも。
template_dir = '.'; $smarty->compile_dir = '.'; $smarty->php_handling = SMARTY_PHP_ALLOW; $smarty->display($_SERVER['SCRIPT_FILENAME']); exit(); //*}?> <html> <head> </head></html>
#!/path/to/php を先頭行に入れた php スクリプトが bash: some_script.php: bad interpreter: No such file or directory を吐く → ファイルの改行コードを直す