Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Include phpsysinfo informations in other page

Help
Anonymous
2010-03-19
2012-12-12

  • Anonymous
    2010-03-19

    Hi, i'm trying to include info from phpsysadmin to a my page, i mean, something like $this->_sys->getHostname() in my own php page. How can i do it?
    i've tried with
    define('APP_ROOT', dirname(__FILE__).'/phpsysinfo/');
    define('PSI_INTERNAL_XML', false);
    require_once APP_ROOT.'/includes/autoloader.inc.php';
    but i don't know how to populate variables with data.

    Any help?

     
  • Erkan
    Erkan
    2010-03-19

    Hello,

    I think the best way is to parse the XML file :
    http://phpsysinfo.sourceforge.net/phpsysinfo/xml.php

    You can do it easily with PHP or JavaScript like PhpSysInfo

     
  • Erkan
    Erkan
    2010-03-19

    Here an example of how to parse XML with PHP and simple_xml :
    http://erkan.power-heberg.com/files/simple_xml.txt

    You can also see phpsysinfo/phpsysinfo.xslt