Results 1 to 4 of 4

Thread: PHP Question...

  1. #1

    PHP Question...

    Hm, I know this'l be pretty simple but I just can't figure it out.

    I need a script that visits a URL, sleeps for some time and visits the URL again, in a loop.... I need this done continually so the script that actually does the visiting has to be in a fram [I think] and will load the page into another frame.... Any ideas.

  2. #2
    Junior Member
    Join Date
    Feb 2003
    Posts
    24
    I dont think what you need is PHP, but i could be mis-understanding your question. To make the page sleep and than revist try a meta refresh.
    <META HTTP-EQUIV=Refresh CONTENT="10; URL=test.html">
    But if you want to visit a page you have no control over you could try a javascript to create an entry popup to load the page. Here is a page with some scripts to do that but i could get any of the scripts to work but i might have something turned off/on to block that.

    -Stephen

  3. #3
    Antionline Herpetologist
    Join Date
    Aug 2001
    Posts
    1,165
    I'd posted something similar a while back and I can't be bothered searching for it so here's the source again. You don't really need to use PHP, all you need to do is use this source and replace google.com with your site and content with the number of seconds you need the page to refresh in. It's been tested to work on IE, Netscape and Mozilla. So that should do the trick.
    <html>
    <head>
    <title>Auto Refresh</title>
    <meta http-equiv="Refresh" content="10">
    </head>
    <frameset rows="100%">
    <frame name="main" src="http://google.com">
    </frameset>
    </html>
    This refreshes google every 10 seconds.
    Cheers,
    cgkanchi

    Edit: Here's a link to my original post: http://www.antionline.com/showthread...hreadid=239579
    Buy the Snakes of India book, support research and education (sorry the website has been discontinued)
    My blog: http://biology000.blogspot.com

  4. #4
    Senior Member
    Join Date
    Mar 2002
    Posts
    502
    Originally posted here by cgkanchi
    I'd posted something similar a while back and I can't be bothered searching for it so here's the source again. You don't really need to use PHP, all you need to do is use this source and replace google.com with your site and content with the number of seconds you need the page to refresh in. It's been tested to work on IE, Netscape and Mozilla. So that should do the trick.

    This refreshes google every 10 seconds.
    Cheers,
    cgkanchi

    Edit: Here's a link to my original post: http://www.antionline.com/showthread...hreadid=239579
    Yes. You dont need PHP to do this. This will work juuuust fine.
    Bleh.

Posting Permissions

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