Sujet : Pb avec phpsysinfo sous SME |
yugo |
[root@gordon root]# cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: Intel Unknown device (rev 2).
Vendor id=8086. Device id=1130.
Fast devsel. Fast back-to-back capable. Master Capable. No bursts.
Bus 0, device 2, function 0:
VGA compatible controller: Intel Unknown device (rev 2).
Vendor id=8086. Device id=1132.
Medium devsel. Fast back-to-back capable. IRQ 11. Master Capable. No bursts.
Prefetchable 32 bit memory at 0xfc000000 [0xfc000008].
Non-prefetchable 32 bit memory at 0xfb000000 [0xfb000000].
Bus 0, device 30, function 0:
PCI bridge: Intel Unknown device (rev 1).
Vendor id=8086. Device id=244e.
Fast devsel. Fast back-to-back capable. Master Capable. No bursts. Min Gnt=6.
Bus 0, device 31, function 0:
ISA bridge: Intel Unknown device (rev 1).
Vendor id=8086. Device id=2440.
Medium devsel. Fast back-to-back capable. Master Capable. No bursts.
Bus 0, device 31, function 1:
IDE interface: Intel Unknown device (rev 1).
Vendor id=8086. Device id=244b.
Medium devsel. Fast back-to-back capable. Master Capable. No bursts.
I/O at 0xb800 [0xb801].
Bus 0, device 31, function 2:
USB Controller: Intel Unknown device (rev 1).
Vendor id=8086. Device id=2442.
Medium devsel. Fast back-to-back capable. IRQ 12. Master Capable. No bursts.
I/O at 0xb400 [0xb401].
Bus 0, device 31, function 3:
SM Bus: Intel Unknown device (rev 1).
Vendor id=8086. Device id=2443.
Medium devsel. Fast back-to-back capable. IRQ 10.
I/O at 0xe800 [0xe801].
Bus 0, device 31, function 4:
USB Controller: Intel Unknown device (rev 1).
Vendor id=8086. Device id=2444.
Medium devsel. Fast back-to-back capable. IRQ 9. Master Capable. No bursts.
I/O at 0xb000 [0xb001].
Bus 1, device 9, function 0:
Ethernet controller: Realtek 8139 (rev 16).
Medium devsel. Fast back-to-back capable. IRQ 5. Master Capable. Latency=64. Min Gnt=32.Max Lat=64.
I/O at 0xd800 [0xd801].
Non-prefetchable 32 bit memory at 0xfa800000 [0xfa800000].
Bus 1, device 10, function 0:
Ethernet controller: Realtek 8139 (rev 16).
Medium devsel. Fast back-to-back capable. IRQ 9. Master Capable. Latency=64. Min Gnt=32.Max Lat=64.
I/O at 0xd400 [0xd401].
Non-prefetchable 32 bit memory at 0xfa000000 [0xfa000000].
|
De ce coté la ca a l'air bon.
Dans php.ini : short_open_tag = On ;
allow_url_fopen = On
|
C'est bien fopen qui est utilisé pour récupérer les infos avec par exemple pour le nom d'hote:
// get our canonical hostname
function chostname () {
if ($fp = fopen('/proc/sys/kernel/hostname','r')) {
$result = trim(fgets($fp, 4096));
fclose($fp);
$result = gethostbyaddr(gethostbyname($result));
} else {
$result = 'N.A.';
}
return $result;
}
|
Je précise que /proc/sys/kernel/hostname contient bien gordon, le nom de ma machine.
|
yugo |
[root@gordon root]# cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: Intel Unknown device (rev 2).
Vendor id=8086. Device id=1130.
Fast devsel. Fast back-to-back capable. Master Capable. No bursts.
Bus 0, device 2, function 0:
VGA compatible controller: Intel Unknown device (rev 2).
Vendor id=8086. Device id=1132.
Medium devsel. Fast back-to-back capable. IRQ 11. Master Capable. No bursts.
Prefetchable 32 bit memory at 0xfc000000 [0xfc000008].
Non-prefetchable 32 bit memory at 0xfb000000 [0xfb000000].
Bus 0, device 30, function 0:
PCI bridge: Intel Unknown device (rev 1).
Vendor id=8086. Device id=244e.
Fast devsel. Fast back-to-back capable. Master Capable. No bursts. Min Gnt=6.
Bus 0, device 31, function 0:
ISA bridge: Intel Unknown device (rev 1).
Vendor id=8086. Device id=2440.
Medium devsel. Fast back-to-back capable. Master Capable. No bursts.
Bus 0, device 31, function 1:
IDE interface: Intel Unknown device (rev 1).
Vendor id=8086. Device id=244b.
Medium devsel. Fast back-to-back capable. Master Capable. No bursts.
I/O at 0xb800 [0xb801].
Bus 0, device 31, function 2:
USB Controller: Intel Unknown device (rev 1).
Vendor id=8086. Device id=2442.
Medium devsel. Fast back-to-back capable. IRQ 12. Master Capable. No bursts.
I/O at 0xb400 [0xb401].
Bus 0, device 31, function 3:
SM Bus: Intel Unknown device (rev 1).
Vendor id=8086. Device id=2443.
Medium devsel. Fast back-to-back capable. IRQ 10.
I/O at 0xe800 [0xe801].
Bus 0, device 31, function 4:
USB Controller: Intel Unknown device (rev 1).
Vendor id=8086. Device id=2444.
Medium devsel. Fast back-to-back capable. IRQ 9. Master Capable. No bursts.
I/O at 0xb000 [0xb001].
Bus 1, device 9, function 0:
Ethernet controller: Realtek 8139 (rev 16).
Medium devsel. Fast back-to-back capable. IRQ 5. Master Capable. Latency=64. Min Gnt=32.Max Lat=64.
I/O at 0xd800 [0xd801].
Non-prefetchable 32 bit memory at 0xfa800000 [0xfa800000].
Bus 1, device 10, function 0:
Ethernet controller: Realtek 8139 (rev 16).
Medium devsel. Fast back-to-back capable. IRQ 9. Master Capable. Latency=64. Min Gnt=32.Max Lat=64.
I/O at 0xd400 [0xd401].
Non-prefetchable 32 bit memory at 0xfa000000 [0xfa000000].
|
De ce coté la ca a l'air bon.
Dans php.ini : short_open_tag = On ;
allow_url_fopen = On
|
C'est bien fopen qui est utilisé pour récupérer les infos avec par exemple pour le nom d'hote:
// get our canonical hostname
function chostname () {
if ($fp = fopen('/proc/sys/kernel/hostname','r')) {
$result = trim(fgets($fp, 4096));
fclose($fp);
$result = gethostbyaddr(gethostbyname($result));
} else {
$result = 'N.A.';
}
return $result;
}
|
Je précise que /proc/sys/kernel/hostname contient bien gordon, le nom de ma machine.
|