Armenian Knowledge Base  

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

Reply
 
LinkBack Thread Tools
Old 16.11.2005, 22:04   #1
Младенец
 
Join Date: 03 2005
Location: Yerevan, Armenia
Age: 38
Posts: 11
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default PHP -> Perl

Lyudi, pomogite!

v PHP est' funkciya header()
est' li chto libo podobnoy v perl?

a konkretno menya interesuet sintaxis scripta download.pl, nu tipa nujno napisat' script kotoriy budet skachivat' fayl! no vsya problema v headerax!

esli kto pomojet , budu blagodaren ochen'!
Reply With Quote
Old 16.11.2005, 22:45   #2
Какое небо, *, Багдад!
 
knightmare's Avatar
 
Join Date: 10 2005
Location: Ереван
Posts: 1,682
Downloads: 16
Uploads: 0
Reputation: 99 | 3
Default

Так скачивать(upload на сервер) или выдавать(download к клиенту) содержимое файла?

Какие проблемы?! Весь поток вывода к клиенту контролируется из скрипта!

Всё, что ты выводишь до первой пустой строки расценивается как HTTP-header-ы - Content-Type и иже с ними...
Один заголовок на строку "Header-Name: Value\n\r"

Опиши проблему поподробнее.

Last edited by knightmare; 16.11.2005 at 23:19.
Reply With Quote
Old 16.11.2005, 22:50   #3
Какое небо, *, Багдад!
 
knightmare's Avatar
 
Join Date: 10 2005
Location: Ереван
Posts: 1,682
Downloads: 16
Uploads: 0
Reputation: 99 | 3
Default

+++
ну есть там класс http header-ов.... с элементарными функциями типа добавить-исключить-flush....
Reply With Quote
Old 17.11.2005, 06:08   #4
панаехавший
 
Obelix's Avatar
 
Join Date: 06 2003
Location: форпост
Age: 30
Posts: 4,007
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

header() izlishni titizutyun a, brni <i>echo</i> ov uzacd durs tur eji skzbic nuyn effekte klni
Reply With Quote
Old 17.11.2005, 06:48   #5
*****
 
Michael's Avatar
 
Join Date: 03 2003
Location: Yerevan
Posts: 314
Downloads: 0
Uploads: 0
Reputation: 9 | 0
Default

http://search.cpan.org/~nwiger/Text-Header-1.03/

ete chisht haskaca es naji
Reply With Quote
Old 17.11.2005, 08:01   #6
Banned
 
Forever Child's Avatar
 
Join Date: 10 2001
Location: ...осень колибри
Age: 37
Posts: 7,487
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

а на фиг perl?
Reply With Quote
Old 18.11.2005, 20:11   #7
Какое небо, *, Багдад!
 
knightmare's Avatar
 
Join Date: 10 2005
Location: Ереван
Posts: 1,682
Downloads: 16
Uploads: 0
Reputation: 99 | 3
Default

Quote:
Originally Posted by Forever Child
а на фиг perl?
...когда есть Basic
Reply With Quote
Old 21.11.2005, 15:08   #8
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

PHP-n urisha...
Reply With Quote
Old 25.11.2005, 19:11   #9
who
 
Guess's Avatar
 
Join Date: 09 2004
Location: Minsk
Age: 31
Posts: 1,017
Downloads: 0
Uploads: 0
Reputation: 4 | 0
Default

Quote:
Originally Posted by mesrop
PHP-n urisha...
Mesrop, inchqan es gitem du perl chgites, hetevabar, ches kara ases php-na lav@ te perl@, 2, perl@ aveli shuta durs ekel qan php-n, php-n hamematabar aveli nor a, bayc et chi nshanakum vor perl-ic petqa hrajarvel...
Reply With Quote
Old 25.11.2005, 20:17   #10
Какое небо, *, Багдад!
 
knightmare's Avatar
 
Join Date: 10 2005
Location: Ереван
Posts: 1,682
Downloads: 16
Uploads: 0
Reputation: 99 | 3
Default

Perl и PHP принципиально разные вещи
Reply With Quote
Sponsored Links
Reply

Thread Tools


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

All times are GMT. The time now is 13:35.


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