Jump to content
php.lv forumi

Venom

Moderatori
  • Posts

    1,918
  • Joined

  • Last visited

Posts posted by Venom

  1. a man gan tagad šķiet, ka tomēr serverī

    joes paņēmu uploadoju dažus failus, kas ir piereģistrēti sistēmā, bet viņiem rādās application/octet-stream

     

    un reku apacim ir mime.types un mime_mod, domājams tur ir tie ejošāko formātu apraksti, bet visiem pārejiem bliež oktet

  2. "Content-Type: text/plain;\r\n\tcharset=windows-1257"

     

    kā 4ais parametrs pašai mail() funkcijai, nevis HTML lapai (sendmailam līdz tavai lapai nu pavisam nekādas darīšanas)

  3. drīzāk info par, to, e.g. kur tā fiziski atrodama uz diska un tad ar php izvada bildi, piem:

     

    SELECT * FROM tabula WHERE id=$_GET['id']

     

    header('Cache-Control: no-cache, no-store, must-revalidate, post-check=0, pre-check=0');

    header('Pragma: no-cache');

    header('Content-Type: '.$result['image_type']);

    header('Content-Disposition: inline; filename="'.$result['file_name'].'"');

    echo file_get_contents($image_dir.$result['file_name']);

×
×
  • Create New...