Revision: 9154
                            
                                                            
                                    
                                        
Updated Code
                                    
                                    
                                                    
                        at February 11, 2010 05:49 by olive
                            
                            Updated Code
error_log()
error_log examples
<?php
// Envoi une notification par l'historique du serveur web,
// si la connexion à la base de données est impossible.
if (!Ora_Logon($username, $password)) {
  error_log("Base Oracle indisponible !", 0);
}
// Indiquer à l'administrateur, par email, qu'il n'y a plus de FOO
if (!($foo = allocate_new_foo())) {
  error_log("Aya!, Il ne reste plus de FOO disponibles !", 1,
  "[email protected]");
}
// D'autres manières d'appeler error_log():
error_log("Grosse bourde !", 2, "127.0.0.1:7000");
error_log("Grosse bourde !", 2, "loghost");
error_log("Grosse bourde !", 3, "/var/tmp/mes-erreurs.log");
?>
                                
                            Revision: 9153
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at October 23, 2008 09:13 by olive
                            
                            Initial Code
error_log()
Initial URL
http://fr.php.net/error_log
Initial Description
Initial Title
Log dans un fichier
Initial Tags
Initial Language
PHP