At 3:50 PM +0100 1/13/08, Jochem Maas wrote:
to avoid this in future never add the closing php bracket to the end of the php file (unless you explicitly want to output something after the code in question - which is almost never the case), it is not required. e.g. --------- >8 info.php ---------------- <?php phpinfo(); --------- >8 info.php ----------------
It may be a religious argument, but I always close my scripts and I know where the white space is.
Also, most of my code is used by other languages (i.e., html, js) so a closing bracket is always required -- unless it's the last function in a file, but I haven't checked to see if that works in all cases. So, I just always close it correctly.
Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php