Note that there are some explanatory texts on larger screens.

plurals
  1. POpear mail include p
    primarykey
    data
    text
    <p>I am getting a 500 server error using or trying to use pear mail and mime. The very last line of code below is causing the 500 error - "$message = new mime();". Evidently, the file cannot be found yet I'm confident in the path. </p> <pre><code>&lt;? require_once('../php/mail/mime.php'); require_once('../php/Mail.php'); $upload_folder = "res_upload/"; //Get the uploaded file information $name_of_uploaded_file = basename($_FILES['uploaded_file']['name']); //get the file extension of the file $type_of_uploaded_file = substr($name_of_uploaded_file, strrpos($name_of_uploaded_file, '.') + 1); $size_of_uploaded_file = $_FILES["uploaded_file"]["size"]/1024;//size in KBs //Settings $max_allowed_file_size = 100; // size in KB //Validations if($size_of_uploaded_file &gt; $max_allowed_file_size ) { $errors .= "\n Size of file should be less than $max_allowed_file_size KB"; } //copy the temp. uploaded file to uploads folder $path_of_uploaded_file = $upload_folder . $name_of_uploaded_file; $tmp_path = $_FILES["uploaded_file"]["tmp_name"]; if(is_uploaded_file($tmp_path)) { if(!copy($tmp_path,$path_of_uploaded_file)) { $errors .= '\n error while copying the uploaded file'; } } $to = "pfcowboy@gmail.com"; $message = new mime(); ?&gt; </code></pre> <p>The error message in the error file on the server reads: </p> <p>[10-Jun-2012 19:58:43] PHP Fatal error: require_once() [function.require]: Failed opening required '../php/mail/mime.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear:/home7/cbceduca/php') in /home7/cbceduca/public_html/employee_job_submission_processor.php on line 9 </p> <p>I'm confident the path is correct yet I cannot open the file. I've set permissions to 0777 on the folder too. Any ideas where I might be going wrong would be warmly received. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload