[error.php]Dans quel répertoire
Posted by: universalbitmapper (---.fbx.proxad.net)
Date: March 27, 2006 10:29AM

Bonjour,

J'ai saisi un error.php trouvé dans un manuel, il est censé envoyer un e-mail au WebMaster sur les erreurs du type 404, 500.
Je l'ai mis sous www, j'ai crée un répertoire \htdocs sous Apache2 et je l'ai copié, mais rien à faire.
Pourtant httpd.conf mentionne bien \htdocs.
Voilà le début du source error.php
*****************************************
<?php
$error_no = $_SERVER['QUERY_STRING'];

switch ($error_no)
{
case 400:
$error_output = "<h1>&quot;Bad Request&quot; Error Page - " .
"(Error Code 400)</h1>";
$error_output .= "The Browser has made a Bad Request<br>";
$error_output .= "<a href=\"mailto:sysadmin@localhost.com\">" .
"Contact the system administrator";
$error_output .= " if you feel to be in error";
break;
*********************************************
Merci d'indiquer la manip :-)

Sorry, only registered users may post in this forum.