[PHP] Downloading images through the use of code

2001-01-22 Thread Liam Gibbs
I have a question for a friend of mine (yes, it's actually for a friend of mine). Here is my code below. First of all, am I correct in assuming I could download a file and parse it using fopen("url")? Secondly, if I find an IMG tag, how would I go about grabbing the file that is contained in

Re: [PHP] Downloading images through the use of code

2001-01-22 Thread Richard Lynch
First of all, am I correct in assuming I could download a file and parse it using fopen("url")? Yup. Pretty darn nifty, huh? Secondly, if I find an IMG tag, how would I go about grabbing the file that is contained in the SRC of that image tag? Would another simple fopen() and fput() to another