----- Original Message ----- 
From: "MIKE YRABEDRA" <[EMAIL PROTECTED]>

> I want to create a php script that will...
>
> 1. Take a list of URLs separated by commas
> 2. Covert that to an array
> 3. Then go through and pull the content from each page in a loop
>
> I am doing this so I can set up a cron job to automatically cache pages
with
> jpcache.

$list = "http://url1,http://url2,http://url3";;

$ar = explode(',',$list);

foreach($ar as $url)
{
  ob_start();
  include($url);
  $page = ob_get_contents();
  //do something with $page here
  ob_end_clean();
}


---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to