Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
804 connectés 

 


Dernière réponse
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.


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
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.

kadreg que contient /proc/pci ?
 
Verifie dans php.ini si open ou fopen  ne serai pas interdi
yugo Sous quel utilisateur tourne le soft ?
Alors la tu me pose une colle: j'accedè a cette page depuis un autre PC (le serveur n'a ni écran ni clavier) logué en utilisateur lambda.
Pour les droits:
[root@gordon root]# ls -al /
...
dr-xr-xr-x   87 root     root            0 jan 10 18:03 proc
...
 
[root@gordon root]# ls -al /proc
...
-r--r--r--    1 root     root            0 jan 10 19:05 pci
...
 
Vu que l'acces en lecture est autorisé a tout le monde ca devrais pas poser de problèmes...
 
remarque: j'utilise une baie d'information donc l'adresse d'acces est :
http://www.rezo.net/stats/phpsysinfo/index.php
Est-ce que ca pose un pb de passer par une telle methode?
 
 
Pour ce qui est du log en root j'utilise SSH donc pas de soucis de sécurité ;o)
kadreg Sous quel utilisateur tourne le soft ?
 
Quels sont les droits de /proc ?
Et natamment /proc/pci
yugo Bonjour,
J'ai un serveur qui partage l'acces au net entre plusieurs PC avec SME. J'ai installé phpsysinfo mais lorsque j'affiche la page la plus part des infos sont en N.A. (pas de perifériques, pas de mémoire, pas de CPU,....).  
Mon php.ini contient bien la ligne  
safe_mode = Off  
et  
include_path = ".:/usr/share/php"
 
Et la je sèche...
 
Si quelqu'un a une idée merçi d'avance...
 
 

Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR