Re: cvs: phpweb / docs.php /include languages.inc

From: Date: Mon, 02 Jun 2003 17:12:13 +0000
Subject: Re: cvs: phpweb / docs.php /include languages.inc
References: 1 2 3  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-18396@lists.php.net to get a copy of this message
// Convert between language codes back and forth // [We use non standard languages codes and so conversion // is needed when communicating with the outside world] @@ -61,3 +65,4 @@
        }
    }
} +?>
This ?> was very much intentinally missing [as is missing from the end of (nearly) all other include files].
erm, why?
Some editors tend to add newlines at the end of file, and the cvs diff used for mailing is also happier if you have a newline. Since PHP allows the programmer to leave off that ending ?> it helps to be sure not to output any whitespace [before using header(), setcookie(), ....]. This is why many include files have no ?> ending, and I remove them if I see such ending ;)) Goba

« previous php.mirrors (#18396) next »