Menu

Is there a way to replace a comma separated list of options?

Help
2014-09-04
2016-03-22
  • Sophoklis Goumas

    Hello and thanks for making phpsysinfo!

    I was thinking whether there was a quick way, like say a wildcard, which
    if entered as an option to PSI_HIDE_DISKS it would render ALL partitions
    to be hidden, thus relieving you of having to supply the whole partition
    list.

    Like if that was to be, let's say the string "MAGIC" then when one
    would change this:

    /*
    * Hide partitions
    * Example : define('PSI_HIDE_DISKS', 'rootfs');
    /
    define('PSI_HIDE_DISKS', '');

    as follows:

    /*
    * Hide partitions
    * Example : define('PSI_HIDE_DISKS', 'rootfs');
    /
    define('PSI_HIDE_DISKS', 'ALL');

    that would render all partitions hidden, at once, without having to
    supply the whole partition comma separated list.

    So is there such an option/wildcard/trick?

    Also it would be neat to know whether that would work, in a similar
    fashion in other options too.

    Thanks once more,
    Sophoklis

     
  • Mieczysław Nalewaj

    Done. Try new revision from GitHub ( https://github.com/phpsysinfo/phpsysinfo )

    HIDE_DISKS=true

     
  • Sophoklis Goumas

    Now that was... FAST!

    Thank you, Mieczysław.

     
  • Mieczysław Nalewaj

    No problem, thanks for your feedback.

     
  • Whenrick

    Whenrick - 2016-03-21

    Hello, this post seems to be a bit dated, in any case, I am needing some assistance in how to configure phpsysinfo on Windows? I haven't been able to find any information on what file(s) to edit. I installed phpsysinfo on a windows 2012 R2 server, and I'm able to display the configuration content of that box. How do I go about editing the configuration to display the Services running on this box?

    Thanks in advance.
    W.