Jump to content

tim_perrett

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Posts posted by tim_perrett

  1. Hey guys

    could somone be so kind to look at http://stage.cyclerevival.co.uk/shop/product/91

    In internet Explorer the image is not hidden benetah the box like it is in Firefox / Safari, i cant seem to fathom why this might be, has anyone any ideas?

    Thanks

    Tim
  2. Hi All

    I have a problem which is this...

    string A is encoded on server X md5('string');
    string B is encoded on Server Y md5('string');

    Now, they should both match, as its the same data, but they dont. Ive read this might be to do with encoding, but how do i force UTf-8?

    Any ideas?

    Thanks

    Tim
  3. Hi,

    try this... just set the content dispositsion and the file name etc

    [code]

    <?php

      function downloadFile($thefile, $ctype, $dname) {
          header("Pragma: public");
          header("Expires: 0");
          header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
          header("Cache-Control: public");
          header("Content-Description: File Transfer");
          header("Content-type: ".$ctype);
          header("Content-Length: ".filesize($thefile));
          header("Content-Disposition: attachment; filename=\"".$dname."\"");
          header("Content-Transfer-Encoding: binary");
          $fp = fopen($thefile);
          fpassthru($fp);
          fclose($fp);
      }

    $thefile = "HSC21.pdf";
    $ctype = "application/pdf";
    $dname = "HSC21.pdf";

    downloadFile($thefile, $ctype, $dname);
    ?>

    [/code]

    Cheers

    Tim Perrett
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.