Hola:

La solución que te han dado con "@" funcionan, pero personalmente no la veo
como una solución "elegante" de cara al mantenimiento del código. Lo
aconsejable/deseable sería que no tuvieras esos warnings pero dado que no has
contado por qué quieres "ocultarlos" simplemente te remito a la configuración
del php.ini:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL             - All errors and warnings
; E_ERROR           - fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT                      - run-time notices, enable to have PHP suggest 
changes
;                     to your code which will ensure the best interoperability
;                     and forward compatability of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices and coding standards warnings
;
error_reporting  =  E_ALL

Un saludo


On Mon, 16 Apr 2007 17:52:09 +0200, sn wrote
> salud;
> ante todo, perdón por el off topic, no se volverá a repetir, pero el 
> caso es que ando apurado y en otros sitios no hayo respuesta. cómo 
> puedo quitar los warnings que saca php por pantalla? he probado con 
> *fbsql_warnings() *pero en mi versión de php(4.3.4) no lo reconoce.
> 
> reitero mis disculpas.
> un saludo.
> _______________________________________________
> Lista de distribución Ovillo
> Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
> Puedes modificar tus datos o desuscribirte en la siguiente 
> dirección: http://lists.ovillo.org/mailman/listinfo/ovillo


--
Manuel J. Recena Soto
* www.manuelrecena.com[/blog]
* [EMAIL PROTECTED]
* +34 609710280 (ES)

_______________________________________________
Lista de distribución Ovillo
Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
Puedes modificar tus datos o desuscribirte en la siguiente dirección: 
http://lists.ovillo.org/mailman/listinfo/ovillo

Reply via email to