Well first of all the HTML image tag you provided '<img...>' really have no play in processing for PHP or Apache. This is pass-through code. In other words you are parsing this via PHP to build the filename for the img src= attribute but the fact the file does not actually exist is not a concern of PHP nor Apache. Only the user's browser cares even a little. Also, if your image is large say 600x400 and you limit the size via width=80 or height=80 in the <img> tag, you are still forcing Apache to deliver the full sized image. The width and height are only to control display proportions. As a suggestion why not install ImageMagick to convert your images to thumbs or whatever. http://www.imagemagick.org/script/index.php --- "Marcos R. Cardoso" <mcardoso@xxxxxxx> wrote: > Hello, > > we use here a script to convert our users' photos into thumbnails using > the functions imagecreatefromjpeg(), imagejpeg() and others. Later we > found out that we could simply use a tag like the one below, since the > photos are thumbnails nowadays. > "<"img src="<"?=$code.'-'.$digit?">".jpg width=80 /">" > > But using a tag like that has become a new problem, because the web > server stops working properly after some time (some DLLs errors, Apache > stops continuously and then stops permanently, having to restart the web > server). We suspected that the problem was in the fact that some users > hadn't taken the photo previously and the accumulation of the error > "file not found" was generating this problem, so we used the is_file() > function, but the problem continued. When PHP 4.4.1 was released the > "corrupt jpeg" bug #34704 was fixed, so we installed it, but the problem > continued. > > We actually don't what could be freezing the Apache, so we are still > using the "resize" script, which is useless and takes memory and CPU > usage from the webserver. > > Our current scenario is: > Windows 2003 > Apache 2.0.54 > PHP 4.4.1 > Sun Chili!Soft ASP 3.6.2 > > Any help would be appreciated, > Marcos R. Cardoso > FURB > Brazil > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php