Re: Re: outputing image part 2

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

 



On 6/15/07, Stut <stuttle@xxxxxxxxx> 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
src=\"common/display_image.php?img_url=".$img_url."\" width=\"200\"
height=\"100\" />";

   He's also right about the dynamic resizing of images causing a
serious strain on the server.  Each time it has to do that, it uses up
a significant amount of resources for a seemingly quick and small
operation.  Multiply that by n number of simultaneous accesses and you
can see the exponential - and potentially devastating - "pitfallic"
results.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
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