Re: outputing image part 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

$img_url="http://www.xxxxxxx.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'];
$image = imagecreatefromjpeg($img_url);
if ($image === false) { exit; }

/// rest of the resize code goes here.....


This still does not work but if I plug the url in manually at the top of 
display_image.php it works, this suggests it is not being sent properly.

Many thanks,


R. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux