Archive for July, 2009
07
Jul

Recently I was wondering how long an url can be at max. So I searched the Internet, and this is what i found:

Internet Explorer FireFox Safari Opera Apache
2048 65536 visibleAt least 100.000 At least 80.000 At least 190.000 Approx 4000

I found this on the Internet, and i thought I’d sum it up for you. Might be useful. The article i found this on is from 2006, but is still something you can rely on. Most results are “at least” or “approx” because the person who wrote the article stopped testing.

But, still don’t know why browsers support moreĀ  than 100.000. Because the servers never support that much. On the link below are some explanations and other results.

Source: http://www.boutell.com/newfaq/misc/urllength.html

, , , , , , , ,

02
Jul

I am working a lot with PHP, and also developing on a live CMS. Because there are already people using the system i don’t want errors to appear.

So, i tried to find a way to fix that. And, i found it. Ofcourse I did, because else this post wouldn’t excist.

This is the row that sets a new default error handler function:

$old_error_handler = set_error_handler("myErrorHandler");

And this is the function:

function myErrorHandler($errno, $errstr, $errfile, $errline)
{
   // Do something with the vars you get from this function.
  // $errno = Error number. Every type of error has an number ;)
  // $errstr = text to explain the error. The one you always see by default
  // $errfile = File the error occurred in
  // $errline = Line number in $errfile the error occurred at.
}

Check for more information www.php.net/set_error_handler

, , , , ,