Обсуждение: suppressing errors and warnings
hi all
i'm trying to develop an application for using a dbase via the web,
so i used postgresql 7 and php 3 to implement it
now i have the following problem: while inserting random generated rows i
often get warning and error msg from postgresql, but i would like to
suppress them in the html page generated by php
can anyone pls give me an advice on how to achieve that result?
is there a general way to trash or pipe away those kind of error or warnign
msgs in pg?
thanks in advance
bubola
bubola wrote:
>
> hi all
>
> i'm trying to develop an application for using a dbase via the web,
> so i used postgresql 7 and php 3 to implement it
>
> now i have the following problem: while inserting random generated rows i
> often get warning and error msg from postgresql, but i would like to
> suppress them in the html page generated by php
>
> can anyone pls give me an advice on how to achieve that result?
> is there a general way to trash or pipe away those kind of error or warnign
> msgs in pg?
There's a setting in your php.ini file to control this. Where that file
is depends on your distribution. Under Debian it's in
/etc/php/apache/php.ini, but if you're using PHP3 you probably aren't
using Debian.
Cheers,
Andrew.
--
_____________________________________________________________________
Andrew McMillan, e-mail: Andrew@cat-it.co.nz
Catalyst IT Ltd, PO Box 10-225, Level 22, 105 The Terrace, Wellington
Me: +64 (21) 635 694, Fax: +64 (4) 499 5596, Office: +64 (4) 499 2267
First, I am installing postgres 7.02 on i686, 2CPU, 512mb, mandrake linux 7.1. I have set the max backends switch to 256 during the compile (--with-maxbackends=256) along with the rest of the chosen parameters but I am a little puzzled about the buffer size and number. I have read the number of buffers can be set by the -B switch at startup. Is this necessary, since I changed the max backends to 256? I guess then buffers should be 512, but was the default number of buffers changed when I set the max backends to 256? Also what is the best way to calculate the block size needed? Steve Ackerman Web Developer GoShip.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com