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.
<?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:
- Mac OS X:
Originally written by cweiske, and now developed by olleolleolle.