Re: Re: headers and newline at end of script
| From: | Adam Zey | Date: | Thu, 20 Jul 2006 21:31:33 +0000 |
| Subject: | Re: Re: headers and newline at end of script | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239670@lists.php.net to get a copy of this message | ||
Martin Marques wrote:
On Thu, 20 Jul 2006, Adam Zey wrote:Regards, Adam Zey.Jochem Maas wrote:Explain yourself. register_globals can give you a big headache, but in which way is not closing the script like using register_globals? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 ---------------------------------------------------------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 ;-)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.Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática | '@' || 'unl.edu.ar'; Universidad Nacional | DBA, Programador, del Litoral | Administrador--------------------------------------------------------- In that they're both features, and I think it's bad style to use either one of them. Robert Cummings disagrees with me, which is fine.