Re: Re: headers and newline at end of script
| From: | Adam Zey | Date: | Thu, 20 Jul 2006 20:53:47 +0000 |
| Subject: | Re: Re: headers and newline at end of script | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239664@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
Robert Cummings wrote:I don't understand - the links point to posts by Rasmus saying that's 'beneficial' - seems to me to be a fairly robust endorsement yet you consider leaving off trailing '?>' wrong (and use Rasmus' comments to back that up) we're having another heatwave here in europe so that could be compounding my lack of understanding ;-)On Thu, 2006-07-20 at 14:15, Martin Marques wrote:Now, my question is: Is it a bad practice to "NOT" close the scriptOn Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings <robert@interjinn.com> wrote:On Thu, 2006-07-20 at 12:12, Adam Zey wrote:Martin Marques wrote:See links I posted in previous response >:)Why? ;-)Wrong :)withYes.PHP simbols, as this scripts are included?the PHP closing "?>"? I mean, just leave the script without a closing
Cheers, Rob.I believe it's the opposite. I said it was bad practice. He disagreed, and used his links to back himself up. Note that just because the fact that it works is a feature, doesn't mean it's good coding style. register globals is a feature too, but it isn't exactly a good idea to use it. Regards, Adam.