Please remove the extra 4 spaces of tabbign on all PHP code. <?php ?> is not a language construct and should not make code within it tabbed. (In addition, PEAR code is only PHP code and therefore there's nothing else to differentiate against).
Please replace all double quoted strings with single quoted strings wher appropriate (no escaped characters such as \n and no variable replacement).
In addition, I would ask for even those strings with variable replacement to use single quotes for readability. I find this:
'beginning '.$var.' end'
more readable/understandable than this:
"beginning $var end"