[PHP] Script that pulls several pages from list?

2003-09-24 Thread MIKE YRABEDRA


Hopefully someone can help.

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.

This way the user never needs to wait on the cache to happen.

Any help would be appreciated :-)



++
Mike Yrabedra (President)
323 Incorporated 
Home of MacDock.com, MacAgent.com and MacShirt.com
++
W: http://www.323inc.com/
P: 770.382.1195
F: 734.448.5164
E: [EMAIL PROTECTED]
I: ichatmacdock
++
Whatever you do, work at it with all your heart,
as working for the Lord, not for men.
~Colossians 3:23 {{{
++

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



Re: [PHP] Script that pulls several pages from list?

2003-09-24 Thread CPT John W. Holmes

- 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