[PHP] Re: outputing image part 2

2007-06-15 Thread Ross
Thanks Stut we are getting somewhere. Removing the header gives the full binary output of the file in IE and FF. I also removes the echos and have the resized image showing in the browser. So far so good. I know it works. Now back to sending the URL. I have this

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Richard Davey
Hi Ross, Friday, June 15, 2007, 10:00:53 PM, you wrote: I have this $img_url=http://www.xxx.co.uk/images/ENbb24469/room1.JPG;; echo img src=\common/display_image.php?img_url='$img_url'\ width=\200\ height=\100\ /; and on the display image page I have: $img_url= $_GET['img_url'];

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Stut
Ross wrote: Thanks Stut we are getting somewhere. Removing the header gives the full binary output of the file in IE and FF. I also removes the echos and have the resized image showing in the browser. So far so good. I know it works. Now back to sending the URL. I have this

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Daniel Brown
On 6/15/07, Stut [EMAIL PROTECTED] wrote: OK, your problem here is the single quotes in the img src around $img_url. Stut's right. You should change: echo img src=\common/display_image.php?img_url='$img_url'\ width=\200\ height=\100\ /; to: echo img

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Ross
I am taking your advice. I am going to rezize any image greater than 400px wide prior to upload. I have to combine my upload script for ($i=0; $i $total; $i++) { $fileName = $_FILES['userfile']['name'][$i]; $tmpName = $_FILES['userfile']['tmp_name'][$i]; $fileSize =

Re[2]: [PHP] Re: outputing image part 2

2007-06-15 Thread Richard Davey
Hi Ross, Friday, June 15, 2007, 10:40:37 PM, you wrote: Any ideas how to save the imagecopyresampled() to the folder? Call imagepng (or imagejpeg or whatever) and pass it a filename to save the image instead of output it. Check the help files for examples. Cheers, Rich -- Zend Certified