Page 1 of 1

Open page and copy partial contents to an array

Posted: Wed Jan 28, 2004 6:19 pm
by mccommunity
I need to find a script that will go through my website and open all the articles that are named article1.htm article2.htm etc. and it needs to open them and grab an images that is always immediately following the html tag <B>Image</B><img src="image.jpg"> I need it to open these pages and rotate through all 10,000 of them and build an array of the image names. Does anyone have a script that will do this or at least point me in the right direction? Thanks a lot.


Mark

Posted: Wed Jan 28, 2004 6:34 pm
by Unipus
opendir(), scandir(), and assorted functions to get the first part done.

regexp for the rest.

hopefully this only has to run once? because it's going to be terribly slow.