Re: header() not working?

From: Date: Sun, 11 Dec 2016 23:11:36 +0000
Subject: Re: header() not working?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-325888@lists.php.net to get a copy of this message
December 10 2016 7:23 AM, "Tedd Sperling" <tedd@sperling.com> wrote: > > Thanks. > > Good consideration, but that’s not the problem. > > Here’s the URL and code, try it yourself: > > http://citw.lcc.edu/~sperlt/citw185/examples/redirect.php > > Cheers, > > tedd Since that is a school server, I'm going to guess that you don't have access to that servers configuration. I lieu of server configuration access, the simple way of seeing if output is being sent, is to issue "print(headers_sent());" just before your call to header(). Then, if the headers have been sent, I would look at the your phpinfo() output and scan for the current value of output_buffers. More than likely someone modified the server settings (possibly an upgrade?) and this is simply an unforeseen side effect of them doing so. Hope this helps -- Jim Lucas C - 5414085189 H - 5413234219 http://cmsws.com

« previous php.general (#325888) next »