J'ai un petit PB lors de l'execution de mon script PHP.
Il me dit:
Code : Tout sélectionner
Notice: Undefined index: description in d:\easyphp\www\aa\printers.php on line 52
Notice: Undefined index: location in d:\easyphp\www\aa\printers.php on line 51
Notice: Undefined offset: 81 in d:\easyphp\www\aa\printers.php on line 50
Notice: Undefined offset: 81 in d:\easyphp\www\aa\printers.php on line 51 Lors de l'execution du script, je me connecte à LDAP, j'extrait des infos et les listes dans un tableau.
Pour ce faire je charge une array. Apparemment lorsque un champs LDAP est vide, ben, il aime pas.
for($i=0; $i<count($info); $i++)
{
$format_array[$i][0] = $info[$i]["printername"][0];
$format_array[$i][1] = $info[$i]["location"][0];
$format_array[$i][2] = $info[$i]["description"][0];
$format_array[$i][3] = $info[$i]["portname"][0];
}
Si vous avez une idée...