Jump to content

tim_perrett

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

About tim_perrett

  • Birthday 03/18/1986

Contact Methods

  • MSN
    freestyle_kayaker@hotmail.com
  • Website URL
    http://www.timperrett.com

Profile Information

  • Gender
    Not Telling
  • Location
    Bath, UK

tim_perrett's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sounds like if your phpinfo(); is working, then the install is working, however its probally that your 'big php projects' have errors in them and your getting no output due to server side code errors. Try turning the dispaly errors on in php.ini - that would help
  2. Hey chaps Is there a way to dynamically work out what platform your on? As I have a function that I either need to pass '/' for *nix systems, and '\\' for win32 boxes yet there doesnt seem to be an easy way to do this? Any suggestions people? Cheers Tim
  3. just tried http://stage.cyclerevival.co.uk/shop/product/91 worked no problem... Cheers! Tim
  4. 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
  5. im sure you can look at that code and mash somthing togehter to work out the content disposistion using the end(explode()) methods maybe Im not going to do it for you, thats not the name of game! lol Tim
  6. 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
  7. AJAX it is, thats the only way you will do that.... www.ajaxfreaks.com Tim Perrett
  8. 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.