header() problem

Hey. I just come across a problem on one of my customers website.

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/bin/php_set_envs.php:9) in /home/churchof/public_html/index.php on line 7

I have always used this code, posted under this. At least ofr about 6-7 years and never been a problem. But suddenly it won’t change to index.php?p=index.php, which makes all my links go ?p=test.php

header(“Location: index.php?p=forside”);

Is there an update to php that I haven’t seen, and that my host as installed, that is corrupting my settings?

Make sure that there’s no white space at the top of the file and that no text output is happening before the header call.

Sponsor our Newsletter | Privacy Policy | Terms of Service