...

View Full Version : PHP header(Location: url) error...



infekt_001
06-02-2004, 09:15 PM
I have written some PHP code that works perfectly on 2 out of 3 servers.
On one of my servers I get the error:

Warning: Cannot modify header information - headers already sent by (output started at /home/hosttek/public_html/PHPMembershipSite/classes/clsMetaContent.php:49) in /home/hosttek/public_html/PHPMembershipSite/login.php on line 22

It refers to my line of code where I use my header(Location: url) function, to redirect my page.

Why would one of my servers generate this error? It is a PHP enabled server. Is there a setting that must be made??

Please help,
Thanks,
Infekt_001

infekt_001
06-02-2004, 09:55 PM
teehee...

ok, that one server must be more picky for than the others.

it was an extra line after my closing ?> in one of my include files.

Example:

<?php
code
?>
-----extra line----



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum