Re: [PHP] cannot quiet notice error

2006-12-18 Thread Youri LACAN-BARTLEY


Gonzalo Gorosito wrote:
 Hello friends,
 
  
 
 I have a little problem with the error_reporting in my php.ini
 
  
 
 Every time I get errors like this:
 
  
 
 Notice: Undefined index: userData in
 /var/www/devzone/megacam/inc/functions.php on line
 
  
 
 And here is my php.ini:
 
  
 
 error_reporting = E_ALL  ~E_NOTICE
 
  
 
 display_errors = On
 
  
I guess http://fr.php.net/error-reporting should answer all that ...
Here's a clue though :

error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = On

You might want to play around with E_STRICT if you're running PHP 5 though.

HTH

 
  
 
 how can I do to shut up these fucking notices? :$
 
  
 
  
 
  
 
 --
 Gonzalo Gorosito
 
  
 
 Sistemas | By-Cycle
 Humboldt 2495, Piso 10
 C1425FUG - Bs.As. Argentina
 Tel.: + 54 (11) 4774 6006 | Fax: + 54 (11) 4774 7117
 www.by-cycle.com http://www.by-cycle.com/ 
 [EMAIL PROTECTED]
 
  
 
 

-- 
Cordialement,

Youri LACAN-BARTLEY

PCAM
Espace HERVANN
641 Chemin des terriers
06600 ANTIBES
Tel: 04.93.33.26.25
Fax: 04.93.33.73.45

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



RE: [PHP] cannot quiet notice error

2006-12-18 Thread Gonzalo Gorosito
I tried to do this:

error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR

and this:

error_reporting = E_ERROR

and the php still display notices :(

-Mensaje original-
De: Youri LACAN-BARTLEY [mailto:[EMAIL PROTECTED] 
Enviado el: Lunes, 18 de Diciembre de 2006 12:06 p.m.
CC: php-general@lists.php.net
Asunto: Re: [PHP] cannot quiet notice error



Gonzalo Gorosito wrote:
 Hello friends,
 
  
 
 I have a little problem with the error_reporting in my php.ini
 
  
 
 Every time I get errors like this:
 
  
 
 Notice: Undefined index: userData in
 /var/www/devzone/megacam/inc/functions.php on line
 
  
 
 And here is my php.ini:
 
  
 
 error_reporting = E_ALL  ~E_NOTICE
 
  
 
 display_errors = On
 
  
I guess http://fr.php.net/error-reporting should answer all that ...
Here's a clue though :

error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = On

You might want to play around with E_STRICT if you're running PHP 5 though.

HTH

 
  
 
 how can I do to shut up these fucking notices? :$
 
  
 
  
 
  
 
 --
 Gonzalo Gorosito
 
  
 
 Sistemas | By-Cycle
 Humboldt 2495, Piso 10
 C1425FUG - Bs.As. Argentina
 Tel.: + 54 (11) 4774 6006 | Fax: + 54 (11) 4774 7117
 www.by-cycle.com http://www.by-cycle.com/ 
 [EMAIL PROTECTED]
 
  
 
 

-- 
Cordialement,

Youri LACAN-BARTLEY

PCAM
Espace HERVANN
641 Chemin des terriers
06600 ANTIBES
Tel: 04.93.33.26.25
Fax: 04.93.33.73.45

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




__ InformaciĆ³n de NOD32, revisiĆ³n 1925 (20061218) __

Este mensaje ha sido analizado con  NOD32 antivirus system
http://www.nod32.com

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



Re: [PHP] cannot quiet notice error

2006-12-18 Thread Jochem Maas
Gonzalo Gorosito wrote:
 I tried to do this:
 
 error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
 
 and this:
 
 error_reporting = E_ERROR
 
 and the php still display notices :(

phpinfo() will probably show that either you
are editing the wrong php.ini, that you forgot to restart your webserver
or that the code is calling error_reporting() with values other than
what you want somewhere.

 
 -Mensaje original-
 De: Youri LACAN-BARTLEY [mailto:[EMAIL PROTECTED] 
 Enviado el: Lunes, 18 de Diciembre de 2006 12:06 p.m.
 CC: php-general@lists.php.net
 Asunto: Re: [PHP] cannot quiet notice error
 
 
 
 Gonzalo Gorosito wrote:
 Hello friends,

  

 I have a little problem with the error_reporting in my php.ini

  

 Every time I get errors like this:

  

 Notice: Undefined index: userData in
 /var/www/devzone/megacam/inc/functions.php on line

  

 And here is my php.ini:

  

 error_reporting = E_ALL  ~E_NOTICE

  

 display_errors = On

  
 I guess http://fr.php.net/error-reporting should answer all that ...
 Here's a clue though :
 
 error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
 display_errors = On
 
 You might want to play around with E_STRICT if you're running PHP 5 though.
 
 HTH
 
  

 how can I do to shut up these fucking notices? :$

  

  

  

 --
 Gonzalo Gorosito

  

 Sistemas | By-Cycle
 Humboldt 2495, Piso 10
 C1425FUG - Bs.As. Argentina
 Tel.: + 54 (11) 4774 6006 | Fax: + 54 (11) 4774 7117
 www.by-cycle.com http://www.by-cycle.com/ 
 [EMAIL PROTECTED]

  


 

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



Re: [PHP] cannot quiet notice error

2006-12-18 Thread Sumeet



how can I do to shut up these f** notices? :$


error_reporting( 0 );

--
Thanking You

Sumeet Shroff
http://www.prateeksha.com
Web Designers and PHP / Mysql Ecommerce Development, Mumbai India

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



Re: [PHP] cannot quiet notice error

2006-12-18 Thread Robert Cummings
On Mon, 2006-12-18 at 21:28 +0530, Sumeet wrote:
  how can I do to shut up these f** notices? :$
 
 error_reporting( 0 );

Or preferably he could learn to code :/ Putting hands over ears while
singing lalalalallalala at the top of your voice isn't a solution.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] cannot quiet notice error

2006-12-18 Thread Richard Lynch
On Mon, December 18, 2006 8:39 am, Gonzalo Gorosito wrote:
 I have a little problem with the error_reporting in my php.ini

 Every time I get errors like this:

 Notice: Undefined index: userData in
 /var/www/devzone/megacam/inc/functions.php on line

 And here is my php.ini:

 error_reporting = E_ALL  ~E_NOTICE

Check with ?php phpinfo();? but almost for sure your php.ini that
you are editing is not the one PHP is actually using...

Cuz you wouldn't be getting those notices if it was.

Either that, or you forgot to re-start Apache (or other web-server)
after you edited php.ini

php.ini gets read at web server startup rather than on every page hit,
for performance reasons.

 display_errors = On

 how can I do to shut up these fucking notices? :$

Of course, the BETTER solution is to use [bleeping] data that doesn't
[bleeping] exist.
:-)

if (isset($whatever['userData'])) do_whatever($whatever['userData']);

The message you are getting is pointing out a logic bug in your code,
where you are relying on the value of the data to be '' by default,
rather than explicitly stating what value it should be.

It's also crucial if you have register_globals ON to fix any E_NOTICE
messages of this nature, or you're wide open for some kind of data
insertion attack.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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