MySQL Forums
Forum List  »  Newbie

Re: Internal server error - table too big?
Posted by: Phillip Ward
Date: May 14, 2012 05:32AM

Quote

I'm not checking for errors after every call, but I do after the mysql_connect. Where would be the best place to send the errors and how would I do this?
Anywhere and everywhere that your application goes to the database has the potential to fail. Check for errors after every single one.

Quote

I'm not checking for errors after every call, but I do after the mysql_connect. Where would be the best place to send the errors and how would I do this?
Where you log the errors is up to you; personally, I prefer an old-fashioned text file that you write to sequentially (open file, write timestamp and message, close file). Add an extra page into your application that allows you to (a) view the log [remotely] and (b) delete the log file, so it doesn't fill up your server, over time.

Regards, Phill W.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.