Jump to content

Structuring database connections and queries


Go to solution Solved by Jacques1,

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.

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.

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 by erikla
This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

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