PHP forums, MySQL forums, Web Development resources

Home PageHome    PHP ResourcesTopic List    FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups 
 RegisterRegister
    ProfileProfile    Log in to check your private messagesLog in to check your private messages    Download the RSS Reader RSS Feed Download the RSS Reader RSS for this forum Log inLog in 

PHP Forum :: MySQL Forum :: Java Script Forum



PHP header(Location: url) error...

 
Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General
View previous topic :: View next topic  
Author Message
infekt_001



Joined: 02 Jun 2004
Posts: 2

PostPosted: Wed Jun 02, 2004 9:59 pm    Post subject: PHP header(Location: url) error... Reply with quote

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
Back to top
View user's profile Send private message
infekt_001



Joined: 02 Jun 2004
Posts: 2

PostPosted: Wed Jun 02, 2004 10:56 pm    Post subject: Reply with quote

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----
Back to top
View user's profile Send private message
Display posts from previous:   
WeberTrivia Questions WeberTrivia Questions
 Think you are smart? Prove it!. Try your skills with these questions :
 WeberTrivia QuestionsRecursive arrays and multi-dimensional arrays are one and the same. (PHP and MySQL)
 WeberTrivia QuestionsThe \"cache_dir\" tag of the squid configuration has a default of /var/spool/squid. (Linux)

WeberTrivia Questions



Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
PHP Forum :: MySQL Forum :: Java Script Forum