View Single Post
Old 04-03-2008, 06:29 AM   PM User | #19
gilgalbiblewhee
Regular Coder

 
Join Date: Mar 2005
Posts: 735
Thanks: 4
Thanked 1 Time in 1 Post
gilgalbiblewhee is an unknown quantity at this point
Quote:
Originally Posted by Kor View Post
Here's a link for the article and php applications:
http://www.troywolf.com/articles/php/class_http/

I tested and used that successfully, together with AJAX in one of my sites.
I want to make the page redirect incrementally every, let's say 5 seconds.
How would I be able to achieve this?
Once the number reaches 10 and 100 I have to drop a "0" from "page0000". $i represents the number of page to be changed incrementally.
PHP Code:
require_once('class_http.php');
$h = new http();
$i=2;
$link "http://.../new/page0000".$i.".htm";
if (!
$h->fetch($link)) {
  echo 
"<h2>There is a problem with the http request!</h2>";
  echo 
$h->log;
  exit();
}
$result $h->body

Last edited by gilgalbiblewhee; 04-04-2008 at 01:46 AM..
gilgalbiblewhee is offline   Reply With Quote