Jump to content

ScottAllenNet

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ScottAllenNet's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks. Is there anything i need to change in there in order to make the above script work?
  2. This is the contents of my PHP.INI file: include_path = ".:/usr/lib/php5:/usr/share/php/libzend-framework-php:/usr/share/zend-framework" allow_url_fopen = on register_globals = on display_errors = on allow_url_include = on
  3. Thanks again buddy. Just ran that: The file Internal Recruitment CV.docx has been uploaded Scott Allen mail.scottallen@gmail.com 447867616540 United Kingdom est Fatal error: Call to undefined function finfo_open() in /homepages/7/d393500880/htdocs/harrisonpearce/test/uploadtest.php on line 55 Not seen this error before :/
  4. Thanks buddy. Ok so, ran that updated one. The file CV.docx has been uploaded Scott Allen mail.scottallen@gmail.com 447867616540 United Kingdom Test Fatal error: Call to undefined function mime_content_type() in /homepages/7/d393500880/htdocs/harrisonpearce/test/uploadtest.php on line 53
  5. I am reading the code I asure you I was merely commenting on what the script has produced just to confirm that it falls inline with what we are trying to achieve. I am not rude enough to ignore the work you are putting in - and I really appreciate it. I am learning allot!
  6. Ok, so when I run this I get the following: The file Ethics Approval Form.docx has been uploaded Scott Allen mail.scottallen@gmail.com 447867616540 United Kingdom Fatal error: Call to undefined function mime_content_type() in /homepages/7/d393500880/htdocs/harrisonpearce/test/uploadtest.php on line 39 The file upload ends up in the same directory as the php and html files in http://harrisonpearce.com/test not in the uploads folder. No email is sent.
  7. I have tried a few different files and get the same error every time :/
  8. I beleive the error lies with this code: $Body .= "Content-Type: ".mime_content_type($file)."; name=\"" .$target_path. "\"\r\n" . "Content-Transfer-Encoding: base64\r\n" . "Content-disposition: attachment; file=\"" .$target_path. "\"\r\n" . "\r\n" . chunk_split(base64_encode($file)); On line 68.
  9. On testing the form I get this: There was an error uploading the file, please try again! Fatal error: Call to undefined function mime_content_type() in /homepages/7/d393500880/htdocs/harrisonpearce/test/uploadtest.php on line 68 http://harrisonpearce.com/test/testform.html
  10. Yes - I filled out all parts of the form and tried it: See: http://www.harrisonpearce.com/submit-your-cv
  11. Ok cheers dude - pulling up this error now: There was an error uploading the file, please try again! Fatal error: Call to undefined function mime_content_type() in /homepages/7/d393500880/htdocs/harrisonpearce/_layout/php/submit-cv.php on line 68
  12. Ok so keep getting this error: There was an error uploading the file, please try again! Fatal error: Call to undefined function mime_content_type() in /homepages/7/d393500880/htdocs/harrisonpearce/_layout/php/submit-cv.php on line 70 I have tried smaller files etc. Really confused. I have got the uploads folder in the same place as the php file.
  13. Ok so I just tried again and got this issue: There was an error uploading the file, please try again! Fatal error: Call to undefined function mime_content_type() in /homepages/7/d393500880/htdocs/harrisonpearce/_layout/php/submit-cv.php on line 70 By the way - thanks again for all of your help. Scott.
  14. Ok I see. Do you know how to correct this then?
  15. Thanks buddy - but it now shows this error: There was an error uploading the file, please try again! Fatal error: Call to undefined function mime_content_type() in /homepages/7/d393500880/htdocs/harrisonpearce/_layout/php/submit-cv.php on line 70
×
×
  • 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.