What's does include('includes/header.php') do? I'm betting there's output in there! If so, put it inside your if ($step == 0) where it belongs anyway. (As does the include of footer.php, incidentally.) There's no point putting anything that might possibly do output in a path that can issue a redirect, so don't. And, yes, this is almost certainly due to a change in the output buffering in your site's config. Cheers! Mike -- Mike Ford, Electronic Information Developer, Libraries and Learning Innovation, 110 Queen Square House, 80 Woodhouse Lane, Leeds Beckett University, Leeds LS2 8NU, United Kingdom E & S4B: m.ford@xxxxxxxxxxxxxxxxxx T: +44 113 812 4730 > -----Original Message----- > From: Tedd Sperling [mailto:tedd@xxxxxxxxxxxx] > Sent: 10 December 2016 15:23 > To: Christoph M. Becker <cmbecker69@xxxxxx> > Cc: Ryan Pallas <derokorian@xxxxxxxxx>; php-general General List <php- > general@xxxxxxxxxxxxx> > Subject: Re: header() not working? > > > > On Dec 8, 2016, at 1:05 PM, Christoph M. Becker <cmbecker69@xxxxxx> > wrote: > > > > On 08.12.2016 at 18:53, Ryan Pallas wrote: > > > >> On Thu, Dec 8, 2016 at 10:40 AM, Christoph M. Becker <cmbecker69@xxxxxx> > >> wrote: > >> > >>> On 08.12.2016 at 17:30, Tedd Sperling wrote: > >>> > >>>> For several years I have had an example of a redirect working on my > >>> college’s Server for my students to review. > >>>> > >>>> The code is simple: > >>>> > >>>> header ("Location:$where"); > >>>> exit(0); > >>>> > >>>> -snip- > > > > Good catch! Note, however, that RFC 7231 which obsoletes RFC 2616 has > > relaxed this: > > > > Location = URI-reference > > > > Still, `amazon.com` would not be valid according to the spec. > > > > Cheers, > > Christoph > > > >> [1] - https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30 > >> [2] - https://www.w3.org/Protocols/HTTP/1.0/spec.html#URI > > 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 > > _______________ > tedd sperling > tedd@xxxxxxxxxxxx > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php To view the terms under which this email is distributed, please go to:- http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html