Results 1 to 4 of 4
Thread: PHP/ASP
Hybrid View
-
24th March 2009 01:05 #1
PHP/ASP
,
, , "Save target as", File Download . Content-Disposition header, . ,
Code:<% Response.ContentType = "application/x-unknown" ' arbitrary fn = "whatever.jpg" FPath = "c:\" & fn Response.AddHeader "Content-Disposition","attachment; filename=" & fn Set adoStream = CreateObject("ADODB.Stream") adoStream.Open() adoStream.Type = 1 adoStream.LoadFromFile(FPath) Response.BinaryWrite adoStream.Read() adoStream.Close Set adoStream = Nothing Response.End %> download.asp
.Code:<html> <head> <meta http-equiv='refresh' content='0;url=download.asp'> <title>Nothing</title> </head> <body> <a href = "image.jpg">Download</a> </body> </html> : index.html
!
!|Asus P5K Premium WiFi|Intel C2D E6750|Kingston 2x1GB@667MHz|Seagate 250GB+500GB|Coolmax CP 500W|Asus EN 8800 GTS 320MB|
-
24th March 2009 01:22 #2
PHP :
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=z0ne.html");
-
28th March 2009 21:43 #3
, .php . , , , z0ne.html .
!|Asus P5K Premium WiFi|Intel C2D E6750|Kingston 2x1GB@667MHz|Seagate 250GB+500GB|Coolmax CP 500W|Asus EN 8800 GTS 320MB|
-
28th March 2009 22:11 #4




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in