I want to make a small script , help me

Discussion in 'PHP' started by jscbiss, Sep 7, 2012.

  1. #1
    Hello ...

    i am new in php and need to your help

    I want to make small php code that can do these things :

    1- open an URL on the server for 10 seconds : for example open www.google.com

    2- close the page

    3- Reopenning the same page for 10 seconds

    and The process continues

    could any one help me to work this .... and thanks

     
    jscbiss, Sep 7, 2012 IP
  2. bals

    bals Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can try this jscbiss,



    <SCRIPT LANGUAGE="JavaScript">
    function redirect () { setTimeout("go_now()",1000); }
    function go_now () { window.location.href = "http://www.google.com"; }
    </SCRIPT>
    <BODY onLoad="redirect()">
    </body>

    i hope its will helps you...
     
    bals, Sep 7, 2012 IP