Reply to Re: headers sent issue

Your name:

Reply:


Posted by Mladen Gogala on 12/03/44 11:55

On Sun, 13 Aug 2006 15:45:51 -0400, Jerry Stuckle wrote:

> Sooner
> or later it will come back to bite you.

Nope. Sooner or later they'll fix PHP to start doing output buffering by
default. I've had pages working without a hitch on Linux or Solaris and
reporting "headers already sent" on Windows 2000. Making every programmer
aware of intricacies of a convoluted and unnecessarily restrictive
protocol is not a solution. Things must be doable through normal
programming, without counting bytes. Your "solution" is like dieting by
maniacally counting calories - it seldomly works and usually creates more
problems then it solves. Calling header() is not an unusual request, it's
like calling a subroutine to jump to another page. I couldn't care less if
headers are already sent, I just want another page, period.
I'm a DBA, programming is not my primary business. I need to get things
done, lots of them and quickly. Things must work, but nobody will come
back complaining to me because of few KB of address space more consumed by
the httpd processes. I use PHP because Perl CGI module is very complex
and the very nature of Perl executing things like `ls /tmp` before the
variable substitution is made. I'm still using Perl for the CLI stuff, but
PHP is my primary web interface. In other words, I started using PHP
because Perl was too complex and it took me too long to develop and
bulletproof my scripts. Following headers religiously and studying trifle
details like that would defeat the purpose. The purpose, may I remind you,
is to develop web applications quickly and not to practice programming
religion. Programming religion is, just as is the case with any other
religion, a guidance and a moral compass when consumed in small doses, but
can also be debilitating, if followed fanatically and to the letter.

--
http://www.mgogala.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация