this_end_up
05-01-2009, 11:13 PM
Hello,
Looking for a quick solution.
I want to create a PHP5 program to run from command line.
Here is what it needs to do.
1. Search entire HTML code.
2. When locates an <IMG> tag, take that image and domain (http://www.cnn.com/turkey.jpg), create a folder on my desktop and place the image into that folder in a directory named as the domain (the folder would be named "cnn.com" and the image placed in it would be "turkey.jpg").
Thanks
Looking for a quick solution.
I want to create a PHP5 program to run from command line.
Here is what it needs to do.
1. Search entire HTML code.
2. When locates an <IMG> tag, take that image and domain (http://www.cnn.com/turkey.jpg), create a folder on my desktop and place the image into that folder in a directory named as the domain (the folder would be named "cnn.com" and the image placed in it would be "turkey.jpg").
Thanks