[PHP] Downloading Images

2005-01-13 Thread John Camp
I was able to successfully make a very simple http proxy - turns out the php documentation has the code for this =] - but now I need a way to display images. I figured the best way would be to download the images to a temporary folder, then parse the html to point to the images on my server

Re: [PHP] Downloading Images

2005-01-13 Thread Greg Donald
On Wed, 12 Jan 2005 22:14:35 -0600, John Camp [EMAIL PROTECTED] wrote: I was able to successfully make a very simple http proxy - turns out the php documentation has the code for this =] - but now I need a way to display images. I figured the best way would be to download the images to a

Re: [PHP] Downloading Images

2005-01-13 Thread Jochem Maas
John Camp wrote: I was able to successfully make a very simple http proxy - turns out the php documentation has the code for this =] - but now I need a way to display images. I figured the best way would be to download the images to a temporary folder, then parse the html to point to the images

Re: [PHP] downloading images

2001-10-29 Thread Richard S. Crawford
With some of the newer broswers, you may be able to re-define the functionality of the context menu via JavaScript. Visit http://www.dynamicdrive.com; I think that there are some examples there, and you might be able to redirect the save image as... functionality there (I wouldn't count on

Re: [PHP] Downloading Images

2001-10-05 Thread _lallous
I suggest you call: readfile() instead of include() at the end of your script! David Otton [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 4 Oct 2001 07:32:17 -0700 (PDT), you wrote: I have added a download button to a web-site that enables users to

[PHP] Downloading Images

2001-10-04 Thread Roger Bryant
All, I have searched high and low through the lists to find a solution to this problem but none of the suggestions appear to work for me. I have added a download button to a web-site that enables users to download images to their local drives. (I'm using a button as I want to wrap some logic

Re: [PHP] Downloading Images

2001-10-04 Thread David Otton
On Thu, 4 Oct 2001 07:32:17 -0700 (PDT), you wrote: I have added a download button to a web-site that enables users to download images to their local drives. (I'm using a button as I want to wrap some logic round this function) I have the following (simplified code )that will be called from the

Re: [PHP] Downloading Images

2001-10-04 Thread Roger Bryant
Hi Dave, Thanks for you prompt response. The Image is indeed a different length, (3k as opposed to the original 9k) I originally did have an error message appended to the downloaded image but that no longer appears to be the case. However the image is definitely truncated. Any ideas why this may

Re: [PHP] Downloading Images

2001-10-04 Thread David Otton
On Thu, 4 Oct 2001 07:51:59 -0700 (PDT), you wrote: different length, (3k as opposed to the original 9k) I originally did have an error message appended to the downloaded image but that no longer appears to be the case. However the image is definitely truncated. Any All the JPEGs I have here

[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