warning message with browser redirecting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gorzilla2007
Forum Newbie
Posts: 1
Joined: Sun Sep 25, 2005 2:36 pm

warning message with browser redirecting

Post by gorzilla2007 »

Hiya, heres my code...

<?php
...
/* $str3 is string from text file */
...

$URL = $str3;
header('Location: '.$URL); /
exit;
?>

And Heres the problem...

ERROR MESSAGE:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domains/perpleplanet.net/docs/temp/check_search.php:4) in /var/www/domains/perpleplanet.net/docs/temp/check_search.php on line 72

Any help would be great. Thanks.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Post Reply