Цитата |
---|
Евгений Педан пишет:
3. Копируем ее в папку /images/ |
Код |
---|
<? error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_PARSE); $filename = $_SERVER["DOCUMENT_ROOT"]."/images/favicon.ico"; if (file_exists($filename)) { $fsize = filesize($filename); header("Content-Type: image/x-icon"); header("Content-Length: ".$fsize); $fd = fopen ($filename, "rb"); $contents = fread ($fd, $fsize); fclose ($fd); echo $contents; } ob_start(); session_start(); $_SESSION["SESS_ADD_TO_FAVORITES"] = "Y"; ob_end_clean(); ?> |
Цитата |
---|
Барсуг пишет:
Ведь в корне сайта стоит проверка <? error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_PARSE); $filename = $_SERVER["DOCUMENT_ROOT"]."/images/favicon.ico"; if (file_exists($filename)) {$fsize = filesize($filename);header("Content-Type: image/x-icon");header("Content-Length: ".$fsize);$fd = fopen ($filename, "rb");$contents = fread ($fd, $fsize);fclose ($fd);echo $contents; } ob_start(); session_start(); $_SESSION["SESS_ADD_TO_FAVORITES"] = "Y"; ob_end_clean(); ?> |