Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
augadgetguy

Errors Setting Up Config.inc.php

Recommended Posts

Please see below:  I am copying the information from the book, but for some reason I keep getting errors for the following 2 lines.  Any suggestions?

 

** Error on this line** - function my_error_handler($e_number, $e_message, $e_file, 

–$e_line, $e_vars){

$message = "An error occurred in script '$e_file' on line $e_line:\n$e_message\n";

$message .= "<pre>" .print_r(debug_backtrace(), 1) . "</pre>\n";

if (!LIVE){

echo 'div class="alert alert-danger">' .nl2br($message)

. '/div';

}else{

error_log($message, 1, CONTACT_EMAIL,

** Error on this line** – 'From:admin@example.com');

if ($e_number !=E_NOTICE){

echo '<div class="alert alert-danger">A system error occurred.  We apologize for the inconvenience.</div>';

}

}//End of $live IF-ELSE.

return true;

}//End of my_error_handler() definition.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...