PHP: <? error_reporting(0); $razm = '100'; $razm1='250'; $pol ='200'; $new_height2 = '200'; $new_width2 = '200'; // Set a maximum height and width $width = '100'; $height = '100'; if (isset($_POST['img'])) { $img = $_POST['img']; } $filename = "noavatar.jpg"; // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width, $height) = getimagesize($filename); // Resample $im = imagecreatetruecolor(100, $razm1); $im1 = imagecreatefromjpeg($filename); $im2 = imagecreatefrompng($img); $img3 = imagecopyresampled($im, $im1, 0, 0, 0, 0, $new_width2, $new_height2, $width, $height); imagecopy($im, $im3, 0, 0, 0, 0, 200, $razm); imagecopy($im, $im2, 0, $pol, 0, 0, 200, 100); ImageTTFtext($im, 26, 0, $w-50, $h+65, $color, "Times", time()); header('Content-type: image/jpeg'); imagejpeg($im,"images/".time()."2.jpg"); ImageDestroy($im); //освобождаем память и закрываем изображение $b = '<img src="images/2.jpg" border="0"> '; echo "$b"; echo "$filename"; echo "$img"; ?> Помогите пожаллуйста оптимизировать. Хостинг просто блокирует мой акк после запуска данного скрипта на минут 30. Мне кажется он перегружает память мне выделеную или что то на подобе!