#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    15
    Rep Power
    0
    I have a problem with redirection using header(), it seems like I have a output stream before the header() code, but I don't know where, any way to check for all the output stream?

    Thanks.

    vic
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    45
    Rep Power
    15
    Nah, but you should be getting an output somewhere? IF it's a big code, I feel sorry for you man, but the only way you can check for output is by hard debugging skillz. Try grepping for echo or printf or all the other word. Depends on what text editor you're doing this in but that's one way. No php function will help you out here though
  4. #3
  5. No Profile Picture
    a total freak
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    33
    Rep Power
    15
    is the php script calling the header is being included by any other file?
    or maybe you could use another redirection method using <meta> tags...??

    Note: Remember that the Header() function must be called before any actual output is sent either by normal HTML tags or from PHP. It is a very common error to read code with include() or with auto_prepend and have spaces or empty lines in this code that force output before header() is called.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Amherst, MA, USA
    Posts
    1
    Rep Power
    0
    You can use Meta tag to "refresh" and redirect an user. It will work in any place
    of your script.

    Something like

    echo "<META Http-equiv='refresh' Content='3; URL=$address'>", where $address is an url to
    go.

Similar Threads

  1. problem with setting cookies and redirection
    By upclpn in forum Perl Programming
    Replies: 7
    Last Post: December 31st, 2003, 12:50 AM
  2. please help!! another url redirection question
    By spk921803 in forum PHP Development
    Replies: 2
    Last Post: December 13th, 2003, 06:25 AM
  3. header location & frameset target HowTO?
    By fordfasterr in forum PHP Development
    Replies: 3
    Last Post: December 4th, 2003, 02:40 PM
  4. Replies: 15
    Last Post: November 21st, 2003, 05:53 PM
  5. Page redirection in PHP
    By lotus in forum PHP Development
    Replies: 7
    Last Post: September 23rd, 2003, 12:08 PM

IMN logo majestic logo threadwatch logo seochat tools logo