-
February 22nd, 2003, 09:58 PM
#1
Member
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.
-
February 23rd, 2003, 08:33 AM
#2
Junior Member
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
-
February 23rd, 2003, 08:57 AM
#3
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
-
February 25th, 2003, 01:02 AM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|