PHP:
    ~
Advanced Hosters -

Yabuti
V.I.P.
: 28.11.2008
: 11263
Contest (: 2)
# : 15, 2011 4:00 pm
!
, :
1. php-, - :
:
<?php
$link='001';
echo '<a href='http://'.$_SERVER['HTTP_HOST'].'/images/'.$link.'jpg>avatarka</a>';
?>


2. images, 001.jpg 999.jpg.

: .
, , , , .
- ?

! :thup: Drinks or Beer
PQCService.net 7 , icq: 87244588
EvaPharmacy. , ! Jabber: [email protected] ICQ: 750000

Codd
: 13.01.2011
: 186
# : 15, 2011 5:38 pm
download.php

download.php

:
<?php

$current_img = file_get_contents('counter.txt');

$images = scandir('images');

file_put_contents('counter.txt', $current_img+1);

header('Content-disposition: attachment; filename="avatar.jpg"');

echo file_get_contents('images/' . $images[$current_img+1]);



counter.txt - , ,
1
download.php

Yabuti
V.I.P.
: 28.11.2008
: 11263
Contest (: 2)
# : 15, 2011 7:32 pm
Codd, , !
! ! :thup: Drinks or Beer Yahoo!
PQCService.net 7 , icq: 87244588
EvaPharmacy. , ! Jabber: [email protected] ICQ: 750000

Editeur
: 19.06.2010
: 382
# : 16, 2011 1:40 am
:

$current_img = file_get_contents('counter.txt');

$images = scandir('images');

file_put_contents('counter.txt', $current_img+1);


. flock http://php.net/manual/en/function.flock.php

:
echo file_get_contents('images/' . $images[$current_img+1]);


X-Accel-Redirect (Nginx) / X-Sendfile (Apache)
http://www.jasny.net/articles/how-i-php-x-sendfile/
BossTDS - | demo BossTDS
    ~