Code : Tout sélectionner
zenith:~# locate sendmail
/home/pascal/php-5.1.4/netware/sendmail_nw.h
/home/pascal/php-5.1.4/win32/sendmail.c
/home/pascal/php-5.1.4/win32/sendmail.h
/usr/lib/sendmail
/usr/sbin/sendmail
/usr/share/man/man8/sendmail.8.gz
zenith:~#Code : Tout sélectionner
zenith:~# locate php.ini
/etc/php5.0/apache2/php.ini
/home/pascal/php-5.1.4/php.ini-dist
/home/pascal/php-5.1.4/php.ini-recommended
/usr/share/doc/php4-common/examples/php.ini-dist
/usr/share/doc/php4-common/examples/php.ini-paranoid
/usr/share/doc/php4-common/examples/php.ini-recommended
/usr/share/doc/php5.0-common/examples/php.ini-dist.gz
/usr/share/doc/php5.0-common/examples/php.ini-recommended.gz
/usr/share/php4/php.ini-dist
/usr/share/ucf/libapache2-mod-php5.0/etc/php5.0/apache2/php.ini
/var/lib/ucf/cache/:etc:php5.0:apache2:php.ini
zenith:~#
Code : Tout sélectionner
zenith:/etc/apache2# apachectl restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
zenith:/etc/apache2#Code : Tout sélectionner
if (mail($mail_destinataire,$mail_sujet, $mail_contenu)){
echo 'Mail envoyé<br />';
}else{
echo 'Echec de connexion<br />';
}