Re: [sqlite] PHP: squelch warning and error messages

2015-01-06 Thread Simon Slavin
On 6 Jan 2015, at 9:47am, Swithun Crowe wrote: > Hello > > L> I know what this error/warning is. I *DO* error handling in my code. I > L> just don't want the message printed on the webpage. > > You can configure PHP to log error messages, rather than display them. Just to explain to non-PHP u

Re: [sqlite] PHP: squelch warning and error messages

2015-01-06 Thread Lev
On Tue, 6 Jan 2015 10:45:40 +0100 Stephan Beal wrote: > PHP's general-purpose mechanism for warning squelching is to prepend > the command which is warning with an @ sign: Thanks. This is what I need. Thank you again. Levente ___ sqlite-users mailing

Re: [sqlite] PHP: squelch warning and error messages

2015-01-06 Thread Stephan Beal
On Tue, Jan 6, 2015 at 10:45 AM, Stephan Beal wrote: > PHP's general-purpose mechanism for warning squelching is to prepend the > command which is warning with an @ sign: > > > if( @someFuncWhichWarns() ) { ... } > To be clear: the @ does NOT change the result of the function in any way (so it h

Re: [sqlite] PHP: squelch warning and error messages

2015-01-06 Thread Swithun Crowe
Hello L> I know what this error/warning is. I *DO* error handling in my code. I L> just don't want the message printed on the webpage. You can configure PHP to log error messages, rather than display them. Swithun. ___ sqlite-users mailing list sqlite-

Re: [sqlite] PHP: squelch warning and error messages

2015-01-06 Thread Stephan Beal
On Tue, Jan 6, 2015 at 10:29 AM, Lev wrote: > I know what this error/warning is. I *DO* error handling in my code. I just > don't want the message printed on the webpage. > PHP's general-purpose mechanism for warning squelching is to prepend the command which is warning with an @ sign: if( @so

Re: [sqlite] PHP: squelch warning and error messages

2015-01-06 Thread Lev
On Mon, 05 Jan 2015 18:29:52 -0800 Roger Binns wrote: [...] > Or in short, you squelch the diagnostics by providing acceptable SQL. > You need to log/trace queries to find out which ones are the > problems. I know what this error/warning is. I *DO* error handling in my code. I just don't want t

Re: [sqlite] PHP: squelch warning and error messages

2015-01-05 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/05/2015 04:53 PM, Lev wrote: > I'm using the PHP bindings for SQLite3. How can I squelch error > and warning messages? I do error checking, but the failing call > emits the messages. > > Messages like: > > Warning: SQLite3::prepare(): Unable to

[sqlite] PHP: squelch warning and error messages

2015-01-05 Thread Lev
I'm using the PHP bindings for SQLite3. How can I squelch error and warning messages? I do error checking, but the failing call emits the messages. Messages like: Warning: SQLite3::prepare(): Unable to prepare statement: 1, no such table: Thanks, Levente