Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. I want to referesh php

I want to referesh php

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
phpdatabasecomtutorialquestion
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    udch
    wrote on last edited by
    #1

    I am trying like this but it is not working can any one tell me how to do this ? <?php for($i=0;;$i++) {    $us=500425    ch();    sleep(15);    $us=500547; } function ch() { <div id="bv_Html1" style="position:absolute;left:50px;top:120px;width:450px;height:140px;z-index:35" align="left"> <iframe frameborder=0 src="http://abc.com/ker.php?scrip=echo $us" width=412 height=160></frame></div> } ?>

    M 2 Replies Last reply
    0
    • U udch

      I am trying like this but it is not working can any one tell me how to do this ? <?php for($i=0;;$i++) {    $us=500425    ch();    sleep(15);    $us=500547; } function ch() { <div id="bv_Html1" style="position:absolute;left:50px;top:120px;width:450px;height:140px;z-index:35" align="left"> <iframe frameborder=0 src="http://abc.com/ker.php?scrip=echo $us" width=412 height=160></frame></div> } ?>

      M Offline
      M Offline
      Marc Firth
      wrote on last edited by
      #2

      do what?

      Neonlight

      U 1 Reply Last reply
      0
      • M Marc Firth

        do what?

        Neonlight

        U Offline
        U Offline
        udch
        wrote on last edited by
        #3

        I want to call function ch() after every 15 second until web page is open. How can i do this   ? I tried it but not succeed it.

        1 Reply Last reply
        0
        • U udch

          I am trying like this but it is not working can any one tell me how to do this ? <?php for($i=0;;$i++) {    $us=500425    ch();    sleep(15);    $us=500547; } function ch() { <div id="bv_Html1" style="position:absolute;left:50px;top:120px;width:450px;height:140px;z-index:35" align="left"> <iframe frameborder=0 src="http://abc.com/ker.php?scrip=echo $us" width=412 height=160></frame></div> } ?>

          M Offline
          M Offline
          Marc Firth
          wrote on last edited by
          #4

          udch wrote:

          for($i=0;;$i++)

          you need to fix this line ie: for($i=0;$i<10;$i++)

          Neonlight

          U 1 Reply Last reply
          0
          • M Marc Firth

            udch wrote:

            for($i=0;;$i++)

            you need to fix this line ie: for($i=0;$i<10;$i++)

            Neonlight

            U Offline
            U Offline
            udch
            wrote on last edited by
            #5

            Thanks for your help brother.Is this code is ok because i am getting this error massage "parse error (unexpected token `id') -- (id . ch)" <?php for($i=0;$i<1000;$i++) {    $us=500425    ch($us);    sleep(15);    $us=500547;    ch($us); } function ch($us) {    echo $us; } ?>

            M 2 Replies Last reply
            0
            • U udch

              Thanks for your help brother.Is this code is ok because i am getting this error massage "parse error (unexpected token `id') -- (id . ch)" <?php for($i=0;$i<1000;$i++) {    $us=500425    ch($us);    sleep(15);    $us=500547;    ch($us); } function ch($us) {    echo $us; } ?>

              M Offline
              M Offline
              Marc Firth
              wrote on last edited by
              #6

              $us=500425; missing ";"

              Neonlight

              1 Reply Last reply
              0
              • U udch

                Thanks for your help brother.Is this code is ok because i am getting this error massage "parse error (unexpected token `id') -- (id . ch)" <?php for($i=0;$i<1000;$i++) {    $us=500425    ch($us);    sleep(15);    $us=500547;    ch($us); } function ch($us) {    echo $us; } ?>

                M Offline
                M Offline
                Marc Firth
                wrote on last edited by
                #7

                or try this http://en.wikipedia.org/wiki/Meta_refresh[^]

                Neonlight

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups