Open page and copy partial contents to an array

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mccommunity
Forum Commoner
Posts: 62
Joined: Mon Oct 07, 2002 8:55 am

Open page and copy partial contents to an array

Post 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
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post 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.
Post Reply