erikla Posted August 2, 2014 Author Share Posted August 2, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/290112-structuring-database-connections-and-queries/page/2/#findComment-1486679 Share on other sites More sharing options...
Jacques1 Posted August 3, 2014 Share Posted August 3, 2014 I was thinking more about an actual HTML page. The HTML template I gave you in the other thread already has 300 bytes, so the complete page should easily exceed 512 bytes. Otherwise you can simply fill it up with some gibberish in a comment. Quote Link to comment https://forums.phpfreaks.com/topic/290112-structuring-database-connections-and-queries/page/2/#findComment-1486705 Share on other sites More sharing options...
erikla Posted August 3, 2014 Author Share Posted August 3, 2014 (edited) 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 Edited August 3, 2014 by erikla Quote Link to comment https://forums.phpfreaks.com/topic/290112-structuring-database-connections-and-queries/page/2/#findComment-1486708 Share on other sites More sharing options...
Jacques1 Posted August 3, 2014 Share Posted August 3, 2014 Why redirect to the error page? Why not simply output the HTML? Quote Link to comment https://forums.phpfreaks.com/topic/290112-structuring-database-connections-and-queries/page/2/#findComment-1486711 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.