All Questions

37
votes
1answers
4918 views

How to get mysqli error in different environments?

In my LOCAL/DEV environment, the mysqli query is performing OK. However, when I upload it on my WEBHOST environment, I got this error; Fatal error: Call to a member function bind_param() on a non-...
1053
votes
23answers
1819935 views

How do I get PHP errors to display?

I have checked my PHP ini file and display errors is set and also error reporting is E_ALL. I have restarted my Apache web server. I have even put these lines at the top of my script, and it doesn't ...
87
votes
15answers
105921 views

PHP's white screen of death

Now that I'm starting to get back into PHP, I'm starting to remember why I gave it up in the first place. The most annoying thing on my plate at the moment is what I've come to term "PHP's white scree...
95
votes
10answers
18488 views

How to avoid isset() and empty()

I have several older applications that throw a lot of "xyz is undefined" and "undefined offset" messages when running on the E_NOTICE error level, because the existence of variables is not explicitly ...
9
votes
9answers
1841 views

Where do you like to catch exceptions and why?

Where do you like to catch exceptions and why? I'm interested in seeing where people find it useful to put their try/catch blocks in the hope that some general patterns might emerge. I'll post my tw...
72
votes
15answers
84755 views

Error logging in C#

I am making my switch from coding in C++ to C#. I need to replace my C++ error logging/reporting macro system with something similar in C#. In my C++ source I can write LOGERR("Some error"); or LOG...
15
votes
3answers
24831 views

How to find a reason when mkdir fails from PHP?

PHP's mkdir function only returns true and false. Problem is when it returns false. If I'm running with error reporting enabled, I see the error message on the screen. I can also see the error messag...
75
votes
15answers
20936 views

Why is exception handling bad?

Google's Go language has no exceptions as a design choice, and Linus of Linux fame has called exceptions crap. Why?
22
votes
6answers
34404 views

How can I stop PHP notices from appearing in wordpress?

I know about error_reporting(0);, and ini_set('display_errors', false);, but there is a notice appearing in wordpress: Notice: Array to string conversion in /var/www/vhosts/treethink.net/subdomain...
16
votes
1answers
14269 views

Application_Error in global.asax not catching errors in WebAPI

For a project I am working on, one of the things we're implementing is something that we have code for in some of my teams older ASP.NET and MVC projects - an Application_Error exception catcher that ...

Previous Next