Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.php Subject: Re: PHP CSV Date: Sat, 07 Feb 2015 01:38:18 +0100 Organization: solani.org Lines: 29 Message-ID: References: <191220140943102761%timstreater@greenbee.net> <54d20e47$0$2897$e4fe514c@news2.news.xs4all.nl> <040220151329007325%timstreater@greenbee.net> <54d23d2c$0$2882$e4fe514c@news2.news.xs4all.nl> <1869725.rFEKTeptZX@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1423269489 5042 eJwNysEBwEAEBMCW3LFLykHov4Rk3gPlYbsRNCzWraHDzNZapks88d6yapk/ScdcpRyhIGbmAyBBEPo= (7 Feb 2015 00:38:09 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 7 Feb 2015 00:38:09 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 X-User-ID: eJwFwYkBwDAIAsCV1ACm4+Rj/xF6x6HUaYgCTY/iZB10rnsQb/I5Q8ob1IcFs7V3FQyg/AMEtRA9 In-Reply-To: <1869725.rFEKTeptZX@PointedEars.de> Cancel-Lock: sha1:kfgFCsw1omXtCdsY4tYG0wZJq7k= X-NNTP-Posting-Host: eJwFwYEBwDAEBMCVKt5jnFD2HyF3phS2g0bY2op2DgOQmpBxpBZU9mNWqFxTHNZfJ/o6rR4HEBBz Xref: csiph.com comp.lang.php:14878 Thomas 'PointedEars' Lahn wrote: > Erwin Moller wrote: > >> On 2/4/2015 3:06 PM, Jerry Stuckle wrote: >>> Do your clients know you're generating invalid HTML for them? >> >> In my above example, the script did something useful in doStuff(); >> Then, redirects to another page with the header("location: ...."). > > header('30… … HTTP/1.…'); > header('Location: …'); > > is safer. Wouldn't it be equally safe to set the $http_response_code argument? header('Location: …', true, 30…); >> PS: If in your opinion only MVC is proper programming, than I can see >> why you never encounter exit() anymore. > > Even with MVC there are valid reasons to use die() and exit(). ACK. -- Christoph M. Becker