Php
Dimitrii
Messages postés
748
Statut
Membre
-
Dimitrii Messages postés 748 Statut Membre -
Dimitrii Messages postés 748 Statut Membre -
Bonjour,
voici mon code :
<html>
<body>
<?php
$ip='192.168.x.x';
$communaute='public';
$resultat=snmpwalk($ip, $communaute,'.1.3.6.1.2.1.31.1.1.1.18');
foreach ($resultat as $idx=>$val) {
echo "$idx=$val<br>";
}
?>
</html>
</body>
voici le résultat :
0=STRING:
1=STRING: vers Internet
2=STRING: vers DMZ AFIB
3=STRING:
4=STRING:
5=STRING:
6=STRING:
7=STRING:
8=STRING:
9=STRING:
10=STRING:
11=STRING:
12=STRING:
13=STRING:
14=STRING:
15=STRING:
16=STRING:
17=STRING:
18=STRING:
19=STRING:
20=STRING:
21=STRING:
22=STRING:
23=STRING:
24=STRING:
25=STRING: SRV1 (11)
26=STRING: SRV2 (12)
27=STRING:
J'aimerais afficher tous ça dans un tableau :s commen faire ?
voici mon code :
<html>
<body>
<?php
$ip='192.168.x.x';
$communaute='public';
$resultat=snmpwalk($ip, $communaute,'.1.3.6.1.2.1.31.1.1.1.18');
foreach ($resultat as $idx=>$val) {
echo "$idx=$val<br>";
}
?>
</html>
</body>
voici le résultat :
0=STRING:
1=STRING: vers Internet
2=STRING: vers DMZ AFIB
3=STRING:
4=STRING:
5=STRING:
6=STRING:
7=STRING:
8=STRING:
9=STRING:
10=STRING:
11=STRING:
12=STRING:
13=STRING:
14=STRING:
15=STRING:
16=STRING:
17=STRING:
18=STRING:
19=STRING:
20=STRING:
21=STRING:
22=STRING:
23=STRING:
24=STRING:
25=STRING: SRV1 (11)
26=STRING: SRV2 (12)
27=STRING:
J'aimerais afficher tous ça dans un tableau :s commen faire ?
A voir également:
- Php
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Retour a la ligne php - Forum Webmastering
- Alert php - Forum PHP
- Retour a la ligne php ✓ - Forum PHP