Re: Re: outputing image part 2
| From: | Daniel Brown | Date: | Fri, 15 Jun 2007 21:28:40 +0000 |
| Subject: | Re: Re: outputing image part 2 | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257141@lists.php.net to get a copy of this message | ||
On 6/15/07, Stut <stuttle@gmail.com> 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 "<imgsrc=\"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