follow me
  • @misskeribebe hey Kerry I need a girl to for project. No videos, no pay, maybe a hug? What u think?

SaveASmile developed by David WalshSaveASmile.co.uk

Each day, thousands of families throughout Britain deal with the consequences of bullying, and can find little in their lives to smile about. But, with a little help from YOU, we can make a difference.


Read More about Save A Smile

CCKW is design developed and maintained by David WalshNew CCKW Layout

The new layout is here, ore enhancements will be coming in the near future.

Try, Catch PHP errors and deprecation warnings

With PHP 5.3 and the introduction of deprecation web apps are moments away from seeing those unsighly errors at the top of the page.  (unless you decided to turn error reporting off altogether)

PHP has a the function set_error_handler, This will allow you to decide how you wish to handle your errors

  1. function myErrorHandler($errno, $errstr, $errfile, $errline) {
  2. switch ($errno) {
  3. case E_NOTICE:
  4. case E_USER_NOTICE:
  5. $errors = "Notice";
  6. break;
  7. case E_WARNING:
  8. case E_USER_WARNING:
  9. $errors = "Warning";
  10. break;
  11. case E_ERROR:
  12. case E_USER_ERROR:
  13. $errors = "Fatal Error";
  14. break;
  15. case E_DEPRECATED:
  16. case E_USER_DEPRECATED:
  17. $errors = "Deprecated";
  18. break;
  19. default:
  20. $errors = "Unknown";
  21. break;
  22. }
  23.  
  24. //here is where you decide what to do with the error, you could save it to file. Put it in a database or display a custom page.
  25. //You may also want to check the type of error and do different things depending on the situation
  26.  
  27. if (ini_get("display_errors") && Production){
  28. printf ("<br />\n<b>%s</b>: %s in <b>%s</b> on line <b>%d</b><br /><br />\n", $errors, $errstr, $errfile, $errline);
  29. }else{
  30. error_log(sprintf("PHP %s: %s in %s on line %d", $errors, $errstr, $errfile, $errline));
  31. }
  32.  
  33. return true;
  34. }
  35.  
  36. define('Production', 1); //used for seeing if you should run the site in a production mode
  37. set_error_handler("myErrorHandler");
I'm trying to donate money to a company for there charitable work throughout the world promoting freedom of speech. However it seems that paypal are refusing to process there payments, I hear that the reason was something to do with criminal activity which hasn't been shown to be valid, however i'm pretty sure paypal is used as the payment provided of a couple of major knock off shops `Ebay` and `China`.
With the plan to increase the pension age to 66 how will the spending be effected
Mary Bale charged over Cat in Bin after failing to provide the cat with a suitable environment. So what is a suitable environment for a cat?
Chachakawooka.com have created an api that can be used with jquery that converts any text to a speech file that is played to the user.
« PreviousNext » 1 2 3 4 5