SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2006
    Location
    Closer than you think
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Header("Location: ....")

    Can I use a header redirect to delay 5 seconds just like this meta tag?

    PHP Code:
    <META HTTP-EQUIV="Refresh" CONTENT="5; URL=redirect2.html"

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    no but you could use sleep() to do it and then the redirect....
    Edit:


    What Chris said below
    Last edited by spikeZ; Feb 22, 2007 at 11:07.
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Addict
    Join Date
    Oct 2004
    Location
    Brooklyn, NY
    Posts
    359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTTP-equivalent meta tags are just substitutes for HTTP headers:
    PHP Code:
    header('Refresh: 5; URL=redirect2.html'); 
    Chris Shiflett
    http://shiflett.org/


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
  •