Reply
Old 08-06-2004, 12:24 AM PHP Redirect problem
Novice Talker

Posts: 7
Trades: 0
Hi,

I have a php page called "5daysite.php" with the following content:

PHP Code:
<?php 
header
("Location: http://hop.clickbank.net/?XXXXX/binaomar"); 
exit; 
?>
When I upload it to the server, I get the following error:

Warning: Cannot modify header information - headers already sent by (output started at /home/webservi/public_html/5daysite.php:1) in /home/webservi/public_html/5daysite.php on line 2



Any help very much appreciated.

- Bina.
bina_oz is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 08-06-2004, 12:26 AM
Christopher's Avatar
Iced Cap

Posts: 3,113
Location: Toronto, Ontario
Trades: 0
If your starting sessions or setting cookies or sending any other headers, then you will get this message. You mustn't send any other headers if you want to use it. If you have to send other headers, then you'll have to look into a HTML/Javascript redirection.
Christopher is offline
Reply With Quote
View Public Profile Visit Christopher's homepage!
 
Old 08-06-2004, 09:56 AM
webwoRRks's Avatar
Ultra Talker

Posts: 426
Location: I hope so
Trades: 0
That should work if thats all the code there is... check you haven't left a blank line at the top or something; it might be considered output so you can't add headers.
webwoRRks is offline
Reply With Quote
View Public Profile Visit webwoRRks's homepage!
 
Reply     « Reply to PHP Redirect problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11198 seconds with 13 queries