Config file contains trailing blank spaces


#1

How do you correct the config file that contains trailing blank spaces which is causing
errors when we do a page redirection?

My host is not helpful and I am really frustrated!!!

Thanks


#2

Extra spaces won’t cause redirect issues.

What config file? What file’s redirecting? How are you doing the redirect (there’s multiple methods)?


yerba# rm -rf /etc
yerba#


#3

header(“Location:registration.php”);

Thanks


#4

A redirection like that will only work if it has been called before any text has been displayed in the browser window. It must, therefore, come at the very top of your file - before even a DOCTYPE or opening tag.


Simon Jessey | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]