Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 26.09.2002, 20:52   #1
Moderator
 
Gates's Avatar
 
Join Date: 02 2002
Location: Armenia
Age: 37
Posts: 5,226
Downloads: 0
Uploads: 0
Reputation: 262 | 5
Post Help me.

Ljudi, vot xochu na saite postavit' link najav na kotorij ljuboj tupoj aperikakashka smog skachat' *.html file ili *.jpg, voobshe chtob ne browser otkril etot file, a dopwnload zarabotal. Ne poluchaetsya html file otkrivaet v browsere
chto posovetuete?
Reply With Quote
Old 27.09.2002, 06:25   #2
D € S I G N € ®
 
gorvard's Avatar
 
Join Date: 05 2002
Location: Yerevan
Age: 34
Posts: 422
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

Ostayotca sdelat' zip!!! lol
Reply With Quote
Old 27.09.2002, 08:43   #3
Студент
 
Join Date: 03 2002
Location: [ Surrealistical World ]
Posts: 312
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

Posylaesh' Content-type 'silver_rulez'.
Reply With Quote
Old 27.09.2002, 21:13   #4
Moderator
 
Gates's Avatar
 
Join Date: 02 2002
Location: Armenia
Age: 37
Posts: 5,226
Downloads: 0
Uploads: 0
Reputation: 262 | 5
Post

ZIP@ misht el ka, bajc eti lav lucum chi.
Emaili siter@ vonc en atachmentner@ download anum?
Reply With Quote
Old 30.09.2002, 05:52   #5
WYSIWYG
 
mk's Avatar
 
Join Date: 05 2002
Location: /dev/null
Age: 37
Posts: 592
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

a ty poprobuy na etot file postavit' takoy vot linkt>>
a href="ftp://sitename.domainname/filename.htm"
Reply With Quote
Old 30.09.2002, 06:07   #6
Студент
 
Join Date: 03 2002
Location: [ Surrealistical World ]
Posts: 312
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

Blin, ya zhe otvetil!!

Posylaesh' kakoy-to neobychniy Content-Type.
Po defaultu web server posylaet content-type dlya html file-ov 'text/html'. A v browsere napisano - dlya 'text/html' pokazat' soderjimoe.

Yesli posylat' header content-type ne 'text/html', a 'chto_to_neobychnoe', to browser ne poimet chto eto i poprosit' save-nut' etot file gde-to.

Ponyatno?

Waiting for reply.

Regards,
Silver
__________________
::Against the crowd.
Reply With Quote
Old 30.09.2002, 16:09   #7
Moderator
 
Gates's Avatar
 
Join Date: 02 2002
Location: Armenia
Age: 37
Posts: 5,226
Downloads: 0
Uploads: 0
Reputation: 262 | 5
Post

Quote:
Originally posted by Rust:
Blin, ya zhe otvetil!!

Posylaesh' kakoy-to neobychniy Content-Type.
Po defaultu web server posylaet content-type dlya html file-ov 'text/html'. A v browsere napisano - dlya 'text/html' pokazat' soderjimoe.

Yesli posylat' header content-type ne 'text/html', a 'chto_to_neobychnoe', to browser ne poimet chto eto i poprosit' save-nut' etot file gde-to.

Ponyatno?

Waiting for reply.

Regards,
Silver
A ya dumal ti prikalivaesh'sya

Mk, esli b ya mog ispolzovat' ftp...
Reply With Quote
Old 01.10.2002, 06:07   #8
Студент
 
Join Date: 03 2002
Location: [ Surrealistical World ]
Posts: 312
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

Gates, nu kak??
Reply With Quote
Old 01.10.2002, 16:17   #9
Moderator
 
Gates's Avatar
 
Join Date: 02 2002
Location: Armenia
Age: 37
Posts: 5,226
Downloads: 0
Uploads: 0
Reputation: 262 | 5
Post

Quote:
Originally posted by Rust:
Gates, nu kak??
Content typeov chistacvum, vortev es iravunq chunem et fileri meg mi ban gram, hamel karoxa .gif kam .jpg kam .txt voobshem ljuboj file karoxa lini
Es execCommand(SaveAs)-em ogtorcel, bajc netscapi tak chkaroxaca ashxatacnem, karoxa execCommand-i analaog@ imanak netscapeum???
Ete eti chgtnem piti ZIP kam tar.gz anem u download tam.

Es hamozveci vor:
MS IE RULEZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
Netscape&Opera SUXXXXXXXXXXXXXXXXXXXXXX

I vobshe vor MS eto kruto
Reply With Quote
Old 01.10.2002, 17:00   #10
»
 
z0mbie's Avatar
 
Join Date: 01 2002
Posts: 777
Downloads: 1
Uploads: 0
Reputation: 0 | 0
Post

Quote:
Originally posted by Gates:
Content typeov chistacvum, vortev es iravunq chunem et fileri meg mi ban gram, hamel karoxa .gif kam .jpg kam .txt voobshem ljuboj file karoxa lini
v file-ы nichego i ne nado pisat', napishi script kotorыy snachala posыlaet content-type a potom soderzhimoe file-a

a Operu не трожь !
Reply With Quote
Old 01.10.2002, 18:06   #11
Moderator
 
Gates's Avatar
 
Join Date: 02 2002
Location: Armenia
Age: 37
Posts: 5,226
Downloads: 0
Uploads: 0
Reputation: 262 | 5
Post

Quote:
Originally posted by z0mbie:
v file-ы nichego i ne nado pisat', napishi script kotorыy snachala posыlaet content-type a potom soderzhimoe file-a
A esli file budet binarnim ili voobshe chjort znaet chem?
Ljudi ya ne siljon v scriptax mojno popdrobnej?

Esli poluchitsya s menya ПЫВО
Reply With Quote
Old 01.10.2002, 20:19   #12
»
 
z0mbie's Avatar
 
Join Date: 01 2002
Posts: 777
Downloads: 1
Uploads: 0
Reputation: 0 | 0
Post

primerno tak na php:

Code:
// getfile.php
Header("content-type:application/zip");
$f=fopen($file,"r");
while( !feof($f)) echo fgetc($f);
a link: http://.../getfile.php?file=file.htm
Reply With Quote
Old 01.10.2002, 20:50   #13
Moderator
 
Gates's Avatar
 
Join Date: 02 2002
Location: Armenia
Age: 37
Posts: 5,226
Downloads: 0
Uploads: 0
Reputation: 262 | 5
Post

Quote:
Originally posted by z0mbie:
primerno tak na php:

Code:
// getfile.php
Header("content-type:application/zip");
$f=fopen($file,"r");
while( !feof($f)) echo fgetc($f);
a link: http://.../getfile.php?file=file.htm
Primerno toje samoe ya sdelal na JSP, no ne vsegda poluchaetsya obnanut' EI, i krome togo takim metodom teryajotsya properies fila, a mne eto nado.
Voobshe apush gorca
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 12:17.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.