Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.34 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.34 KB

System_Launcher

System_Launcher is a simple opener of filenames and URLs, based on the operating system's conveniences for that.

It could help other PEAR command-line tools, such as a mythical pear report-bug command, which could open a web page with a form, pre-filled with useful values (by just using the query- string) when the user has entered for which PEAR package to report a bug.

Usage

    <?php
    require_once 'System/Launcher.php';

    $launcher = new System_Launcher;

    // open a file
    $launcher->launch('/data/docs/index.html', true);
    
    // or a URL
    $launcher->launch('http://pear.php.net', true);
    ?>

These operating system commands are run:

Credits

Originally written by cweiske, and now developed by olleolleolle.