SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    WebAmoeba mythix's Avatar
    Join Date
    Aug 2002
    Location
    here
    Posts
    578
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a header question

    when use th header function in the following context:
    PHP Code:
     header("Location: index.php" ); 
    Does it wait for the page to load, then redirect, or does it redirect as soon as it recieves the header info?
    Laws are like sausages. You have much more respect for them if you haven't actually seen how they're made.

    http://www.webamoeba.co.uk

  2. #2
    SitePoint Wizard gold trophysilver trophy
    Join Date
    Nov 2000
    Location
    Switzerland
    Posts
    2,479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    does it redirect as soon as it recieves the header info?
    Yes. Be aware that some browsers can be told to ignore redirection, so if you don't want the rest of the page to be available, make sure you exit() afterwards.

  3. #3
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or your script will just keep on going... to where is anyone's guess LoL


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •