|
Тема |
Re:-) [re: Bлaди_] |
|
Автор |
PllP (SubNet) |
|
Публикувано | 06.11.03 16:06 |
|
|
CGI: с един мои приятел връщахме картинки...
sub cgi_head($)
{
my ($jpg)=@_;
if(!$jpg){
print "Content-type: text/html\n\n";
} else {
print <<MIME;
Content-Type: image/jpeg
Content-Transfer-Encoding: BASE64
Content-Disposition: INLINE
MIME
}
}
JSP:
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>
PHP:
<?php
header("Content-Type: text/html; charset=KIOR-8");
?>
Преди време имаше подобна тема наоколо...
|
| |
|
|
|