It is currently Tue Feb 07, 2012 8:50 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PHP header(Location: url) error...
PostPosted: Wed Jun 02, 2004 10:59 pm 
Offline

Joined: Wed Jun 02, 2004 10:54 pm
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 02, 2004 11:56 pm 
Offline

Joined: Wed Jun 02, 2004 10:54 pm
Posts: 2
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----


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron