zmerz145
01-12-2008, 03:50 PM
I keep getting the following syntax error and cannot seem to figure out why.
Parse error: syntax error, unexpected '>' in /home/waigo/public_html/config.inc.php on line 46
I have tripple checked the code and can't see where I screwed up. Here is the code from the config.inc.php file.
function my_error_handler ($e_number, $e_message, $e_file, $e_line, $e_vars) {
// Build the error message.
$message = "<p>An error occurred in script '$e_file' on line $e_line: $e_message\n<br />";
// Add the date and time:
$message .= "Date/Time: " . date('n-j-Y H:i:s') . "\n<br />;
// Append $e_vars to the $message:
line 46 $message .= "<pre>" . print_r ($e_vars, 1) . "</pre>\n</p>";
if(!LIVE) { // Development (print the error).
echo '<div id="Error">' . $message . '</div><br />;
}
else { // Don't show the error:
Please help me with what I did wrong?
Parse error: syntax error, unexpected '>' in /home/waigo/public_html/config.inc.php on line 46
I have tripple checked the code and can't see where I screwed up. Here is the code from the config.inc.php file.
function my_error_handler ($e_number, $e_message, $e_file, $e_line, $e_vars) {
// Build the error message.
$message = "<p>An error occurred in script '$e_file' on line $e_line: $e_message\n<br />";
// Add the date and time:
$message .= "Date/Time: " . date('n-j-Y H:i:s') . "\n<br />;
// Append $e_vars to the $message:
line 46 $message .= "<pre>" . print_r ($e_vars, 1) . "</pre>\n</p>";
if(!LIVE) { // Development (print the error).
echo '<div id="Error">' . $message . '</div><br />;
}
else { // Don't show the error:
Please help me with what I did wrong?