Re: [PHP-DB] Warnings and Notices

2005-01-06 Thread Jochem Maas
Jason Davis wrote:
I just got the software I was fighting with working. Only issue now is that
the top of the page is filled with notices and warnings, even though the
code is working. Is there any way to turn off or hide these notifications?
read them and fix your code is one way.
another is to turn down error reporting:
http://nl2.php.net/error_reporting
Jason
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Warnings and Notices

2005-01-06 Thread Janet Valade
Jason Davis wrote:
I just got the software I was fighting with working. Only issue now is that
the top of the page is filled with notices and warnings, even though the
code is working. Is there any way to turn off or hide these notifications?
You can set the error level in php.ini, using the description there. You 
can also set the error level per script, as follows:

http://www.php.net/manual/en/function.error-reporting.php
You can stop errors being displayed altogether. See display_errors in 
your php.ini file.

You can send your errors to a log file.
http://www.php.net/manual/en/function.error-log.php
You can stop individual warnings and messages by putting a @ in front of 
them.

Janet

--
Janet Valade -- janet.valade.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] warnings

2003-01-31 Thread Jeffrey_N_Dyke

sorry i don't speak (spanish?)...but this means you have sent information
to the browser before the header() function call.

even a space at the top of the page, before the opening ?php tag will
cause this.

hth
jeff


   
 
Rui Miguel
 
Palma   To: [EMAIL PROTECTED], 
[EMAIL PROTECTED],  
[EMAIL PROTECTED][EMAIL PROTECTED], 
[EMAIL PROTECTED]  
t   cc:   
 
 Subject: [PHP-DB] warnings
 
01/01/2003 
 
09:10 AM   
 
   
 
   
 




o que posso fazer para não obter o seguinte warning

Warning: Cannot add header information - headers already sent in c:
\apache\htdocs\anula_reserva.php on line 21

__
Rui Palma
ICQ#: 171381429
 Current ICQ status:
+  More ways to contact me
__




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] warnings

2003-01-31 Thread Jeffrey_N_Dyke

hello.  sorry to have tried to guess at the language.  I've received a
couple emails, some nicer then others.  i had no intention of insulting
anyone, i meant no offense.

unfortunately i could not read his statement but knew his issue, luckily he
is smarter then I am, and understood my reply.

Jeff


   
 
Miguel Brás
 
m.bras@netcab   To: [EMAIL PROTECTED]
 
o.ptcc:   
 
 Subject: Re: [PHP-DB] warnings
 
01/31/2003 
 
09:55 AM   
 
   
 
   
 




Hi,
to Jeffrey:
it's portuguese, anyway he is asking what he can do in order to not receive
that message.

to Rui:
se estás a usar header(), deverás usar antes de enviares qualquer
informação
para o script. Se enviaste alguma info para o script e só depois usas o
header(), essa msg vai ser sempre mostrada

Regards/Abraço

Miguel
- Original Message -
From: [EMAIL PROTECTED]
To: Rui Miguel Palma [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, January 31, 2003 2:16 PM
Subject: Re: [PHP-DB] warnings



sorry i don't speak (spanish?)...but this means you have sent information
to the browser before the header() function call.

even a space at the top of the page, before the opening ?php tag will
cause this.

hth
jeff



 Rui Miguel
 Palma   To:
[EMAIL PROTECTED], [EMAIL PROTECTED],
 [EMAIL PROTECTED][EMAIL PROTECTED],
[EMAIL PROTECTED]
 t   cc:
   Subject: [PHP-DB] warnings
 01/01/2003
 09:10 AM







o que posso fazer para não obter o seguinte warning

Warning: Cannot add header information - headers already sent in c:
\apache\htdocs\anula_reserva.php on line 21

__
Rui Palma
ICQ#: 171381429
Current ICQ status:
+  More ways to contact me
__




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Warnings and Error messages

2002-07-17 Thread Russ

Stick a '@' in front of the function/statement generating the error:

@unlink($filname); for example...

Russ

-Original Message-
From: Gabor Niederlaender [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 5:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Warnings and Error messages


Hi all!

How can I prevent the warnings end errors to be written on the screen?

I would like to prevent the warnings end errors to be written on the
screen because I want to handle the errors with the odbc_errormsg()
function.

How do I do that?
Is there a better way?

Best regards,

Gabor

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php