Jump to content

Structuring database connections and queries


erikla

Recommended Posts

I'm talking about a graphical error page with formatted text, images etc. Something like the Wikipedia error page.

 

I mean, that single line of plaintext above was just for testing. In reality, it should be a proper page with a bit of visual appeal.

 

I am unsure what you mean here? Isn't it the size of the file, where the fatal error occurs, that IE wants to be bigger than 512 B? If so it doesn't work to link to an image which size is sufficient big! Please explain.

Link to comment
Share on other sites

Sorry, but I am still puzzled. Should I change the direct error message, implemented with an echo 'A Technical error ocurred' like above, with for example a header to direct to the error page, having a size of 512 bytes or more?. Like this:

<?php

function handle_fatal_errors() {
	if (http_response_code() == 500) {header("Location: error_page.php");}
}

register_shutdown_function('handle_fatal_errors');	
ini_set('display_errors', 0);

Erik

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.