I like the idea of leaving off the "?>" in included files, but we should be careful to leave it in place for "standalone" php files (i.e. those that can be the target of a URL requested by a client). Is that only the "index.php" file for this application?

 

On Fri, 21 Jul 2006 09:08:27 -0700, Mark Edwards wrote:

On Jul 21, 2006, at 6:01 AM, Martin Marques wrote:

>
> On Fri, 21 Jul 2006 9:34:19 -0300, Martin Marques
> wrote:
>>
>> OK, I'm seeing to much of this error messages, and they are not
>> related to
>> the config files main.inc.php or db.inc.php.
>>
>> Some script has a new line at the end, after the closing "?>".
>>
>> Now, I have a proposle, backed up by a mail from Rasmus Leardorf:
>>
>> http://marc.theaimsgroup.com/?l=php-dev&m=106896382030183&w=2
>>
>> Why not get ride of the closing "?>" at the end of the scripts?
>
> OK, found the new line that was messing up everything:
>
> $ svn diff
> Index: program/lib/Mail/mime.php
> ===================================================================
> --- program/lib/Mail/mime.php (revision 278)
> +++ program/lib/Mail/mime.php (working copy)
> @@ -909,4 +909,3 @@
>
> } // End of class
> ?>
> -

While this file indeed had an extra line at the end for me, I still
get errors after fixing it, so there's yet another culprit. :-/

--
Mark Edwards