Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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
 
 
Register now for full access!
Old 08-06-2004, 12:26 AM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
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.
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
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.71534 seconds with 12 queries