batch file that has internet explorer visit webpage

visit a webpage every minute

would this work
in windows server 2008
@echo off 
:loop 
"C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://website.com" 
sleep(60)
goto loop

Open in new window

LVL 1
rgb192Asked:
Who is Participating?
 
gr8gonzoConsultantCommented:
Sort of, but it would create a new Internet Explorer window every time, which would make you run out of memory pretty quickly. Just use PHP's file_get_contents() to trigger a web site visit. Something like this:

<?php
while(true)
{
   file_get_contents("http://www.website.com");
   sleep(60);
}
?>

Then just run:
php.exe the_above_script.php
0
 
segurahCommented:
Also you can use the 'file' function :

file('http://www.example.com/');
0
 
gr8gonzoConsultantCommented:
True, but there's really no difference in the speed or functionality between file_get_contents, file, fopen, or any of the other PHP functions that access a URL - it's all the same underlying network engine.

If the script were processing the contents of the URL, -then- there would be a difference in functionality.
0
 
rgb192Author Commented:
got what i had to get done
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.