PEAR_Info::toHtml

PEAR Manual


FAQ

FAQ -- Answers to most Frequently Asked Questions

PHP_CompatInfo FAQ

    General questions

    What does it cost ?

    You can download and use it for free. But don't delete the copyright notice. You can read terms of the PHP license.

    Do you offer support ?

    YES if there is no answer in this Guide and if you are ready to share some informations such as : your configuration (platform Win *nix mac, PHP version, PEAR packages installed) and perharps your script.

    I found a bug, what shall i do ?

    You can report it with the bug tracker at PEAR.

    What is PEAR ?

    PEAR (an acronym for PHP Extension and Application Repository) is a framework and distribution system for reusable PHP components.

    Don't forget to read also the PEAR Manual and PEAR FAQ.

    How to do

    I have a compatible PHP4/5 application with optional PHP5 code. How to ignore only PHP 5 code ?

    If you want to ignore all PHP5 code (functions, constants, extensions), you only need to add a line on your parsing (file, directory, string) options: "ignore_versions". In this example all PHP 5.0.0 to 5.2.0 code will be ignored when parsing current directory.

          
    <?php
    require_once 'PHP/CompatInfo.php';

    $dir dirname(__FILE__);
    $options = array('ignore_versions' => array('5.0.0''5.2.0'));

    $pci = new PHP_CompatInfo();
    $res $pci->parseDir($dir$options);
    var_dump($res);
    ?>




    PEAR_Info::toHtml

    PEAR Manual