PHP redirecting

Discussion in 'PHP' started by Mil1243, Apr 14, 2007.

  1. #1
    Is there any code in PHP that shows a page for a specific time i.e 10 seconds
    and automaticlly redirect the page to the other URL ?!
     
    Mil1243, Apr 14, 2007 IP
  2. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #2
    no need for php , you can do it in HTML .

    <META HTTP-EQUIV="Refresh"
    CONTENT="10; URL=url-here">

    but if u want to do it in php ...

    <?php
    header('Refresh: 10; URL=http://www.example.com');
    ?> 
    PHP:
     
    commandos, Apr 14, 2007 IP
  3. RECEP

    RECEP Well-Known Member

    Messages:
    1,855
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    195
    #3
    l think it should be on the same line if l am not wrong.
     
    RECEP, Apr 14, 2007 IP
  4. komirad

    komirad Well-Known Member

    Messages:
    921
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    108
    #4
    header("Location: http://www.example.com/")

    instant redirection
     
    komirad, Apr 14, 2007 IP
  5. Mil1243

    Mil1243 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank u very much
     
    Mil1243, Apr 14, 2007 IP