AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Apr 12, 2007, 17:07   #1
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,154
Rep Power: 4
Reputation: 60
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Файл через PHP

inchpes kareli e faile output anel cherez php? (for download)

PHP Code:
<?
header
('Content-Type: application/octet-stream');
header('Accept-Ranges: bytes');
header('Content-Length: ' .filesize($file));
header('Content-Disposition: attachment; filename="'.basename($file"/").'"');
readfile($file);
?>

yes sens em arel, uxaki senc ham down-i aragutyunn a shat qich, hamel "Resume support" (for download accelerators) chka
urish inch karajarkeq?
mersi
Mesrop is offline   Reply With Quote Quote selected
Old Apr 12, 2007, 17:28   #2
Say no to alco like Gates
 
Hrach_Techie's Avatar
 
Join Date: Aug 2004
Location: Apparently the anti-alcoholism campaign hasn't worked very well for Gates after the last Zaher party ...
Posts: 16,259
Rep Power: 7
Reputation: 337
Quote:
Originally Posted by Mesrop View Post
inchpes kareli e faile output anel cherez php? (for download)

PHP Code:
<?
header
('Content-Type: application/octet-stream');
header('Accept-Ranges: bytes');
header('Content-Length: ' .filesize($file));
header('Content-Disposition: attachment; filename="'.basename($file"/").'"');
readfile($file);
?>
yes sens em arel, uxaki senc ham down-i aragutyunn a shat qich, hamel "Resume support" (for download accelerators) chka
urish inch karajarkeq?
mersi
Саурона спрашивал? он ас в пхп - напеши в личку или в жж спроси он там чаще чем тут ...
__________________
Мадмазель, Медам, Месье! "Глория" меняет курс и направляется в Кейптаун! Кому это не нравится будет расстрелян на месте. (с)

http://texneg.livejournal.com
Hrach_Techie is offline   Reply With Quote Quote selected
Old Apr 12, 2007, 21:22   #3
Какое небо, бля, Багдад!
 
knightmare's Avatar
 
Join Date: Oct 2005
Location: Ереван
Posts: 1,647
Rep Power: 3
Reputation: 68
см. на forum.vision.am
http://forum.vision.am/index.php?act=ST&f=87&t=11329
__________________
мордой об лавку
LISP is the only language that is truly beautiful.
d
.

Хочу трахнуть Nissan Skyline R34, и ездить на Alessandra Ambrosio
knightmare is offline   Reply With Quote Quote selected
Old Apr 13, 2007, 06:50   #4
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: Sep 2002
Location: Vik, Medieval Norway
Posts: 1,479
Rep Power: 6
Reputation: 42
Send a message via ICQ to hov
irikunot kdnem mi hat ktor.
__________________
Rock Hovhannes.

Дневник
Stryfe.Am - Coming Soon!
hov is offline   Reply With Quote Quote selected
Old Apr 13, 2007, 07:27   #5
...overwined...
 
noone's Avatar
 
Join Date: Mar 2003
Location: ...tortuga...
Posts: 3,392
Rep Power: 6
Reputation: 140
Quote:
Originally Posted by Mesrop View Post
inchpes kareli e faile output anel cherez php? (for download)

PHP Code:
<?
header
('Content-Type: application/octet-stream');
header('Accept-Ranges: bytes');
header('Content-Length: ' .filesize($file));
header('Content-Disposition: attachment; filename="'.basename($file"/").'"');
readfile($file);
?>
yes sens em arel, uxaki senc ham down-i aragutyunn a shat qich, hamel "Resume support" (for download accelerators) chka
urish inch karajarkeq?
mersi
вы хоть понимаете как "резюм суппорт" работает?...
__________________
...let's be gods... let's by ugly...
noone is offline   Reply With Quote Quote selected
Old Apr 13, 2007, 09:38   #6
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,154
Rep Power: 4
Reputation: 60
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Quote:
вы хоть понимаете как "резюм суппорт" работает?...
chto-to miqich patkeracnum em, dra hamar chto-to indz tvuma vor PHP-ov hnaravor chi...
Mesrop is offline   Reply With Quote Quote selected
Old Apr 13, 2007, 09:46   #7
Какое небо, бля, Багдад!
 
knightmare's Avatar
 
Join Date: Oct 2005
Location: Ереван
Posts: 1,647
Rep Power: 3
Reputation: 68
Quote:
Originally Posted by Mesrop View Post
chto-to miqich patkeracnum em, dra hamar chto-to indz tvuma vor PHP-ov hnaravor chi...
ынаравора, аперь, просто петка HTTP-i RFC кардас
__________________
мордой об лавку
LISP is the only language that is truly beautiful.
d
.

Хочу трахнуть Nissan Skyline R34, и ездить на Alessandra Ambrosio
knightmare is offline   Reply With Quote Quote selected
Old Apr 13, 2007, 22:05   #8
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,154
Rep Power: 4
Reputation: 60
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Все! стацвец! шаат шноракалутюн, knightmare!!!
Mesrop is offline   Reply With Quote Quote selected
Old Jan 30, 2008, 14:24   #9
Младенец
 
Javakhk's Avatar
 
Join Date: Jul 2006
Location: Javakhk
Posts: 6
Rep Power: 0
Reputation: 10
Assume your file is my_file.txt, and you wish to read it into the variable $preset in PHP. Then simply write:

PHP Code:
$file="my_file.txt";
$preset="";
$handle fopen($file"r");
while (!
feof($handle)) {
$buffer fgets($handle4096);
$preset="$preset$buffer";
}
fclose($handle); 
Javakhk is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Глупый, денежный мальчик Gates Literary nook 0 Sep 19, 2006 11:38
А ПРАВДА ЛИ, ЧТО СПЕРМАТАЗОИДЫ ВЫБИРАЮТСЯ ИЗ ПРЕЗЕРВАТИВА? Gates Fun 1 Nov 29, 2004 17:13
PHP against ASP acid Web Development 1 Aug 6, 2004 21:30
PHP remote vulnerabilities VX Software Security 0 Mar 4, 2002 19:20


All times are GMT. The time now is 05:19.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link