Jump to content
php.lv forumi

PheliX

Reģistrētie lietotāji
  • Content Count

    167
  • Joined

  • Last visited

Posts posted by PheliX

  1. ideja apmeeram taada...

    header('Content-Type: octet/stream'); //lai neber uz ekraana, bet liek seivot
    header('Content-Disposition: attachment; filename="'.$faila_nosaukums.'"'); //lai php faila nosaukuma vietaa raada taadu kaadu gribi
    header('Content-Length: '.$faila_izmeers); //lai browsers raada cik nokachaats :)
    echo $faila_saturs; //pats saturs - izvadiishanu sagudro kaa eertaak...

×
×
  • Create New...