home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / System / Daemon / OS / Windows.php < prev   
Encoding:
PHP Script  |  2008-07-02  |  1.3 KB  |  45 lines

  1. <?php
  2. /* vim: set noai expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
  3. /**
  4.  * System_Daemon turns PHP-CLI scripts into daemons.
  5.  * 
  6.  * PHP version 5
  7.  *
  8.  * @category  System
  9.  * @package   System_Daemon
  10.  * @author    Kevin van Zonneveld <kevin@vanzonneveld.net>
  11.  * @copyright 2008 Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  12.  * @license   http://www.opensource.org/licenses/bsd-license.php New BSD Licence
  13.  * @version   SVN: Release: $Id$
  14.  * @link      http://trac.plutonia.nl/projects/system_daemon
  15.  */
  16.  
  17. /**
  18.  * A System_Daemon_OS driver for Windows
  19.  *
  20.  * @category  System
  21.  * @package   System_Daemon
  22.  * @author    Kevin van Zonneveld <kevin@vanzonneveld.net>
  23.  * @copyright 2008 Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  24.  * @license   http://www.opensource.org/licenses/bsd-license.php New BSD Licence
  25.  * @version   SVN: Release: $Id$
  26.  * @link      http://trac.plutonia.nl/projects/system_daemon
  27.  * * 
  28.  */
  29. class System_Daemon_OS_Windows extends System_Daemon_OS
  30. {
  31.     /**
  32.      * Determines wether this system is compatible with this OS
  33.      *
  34.      * @return boolean
  35.      */
  36.     public function isInstalled() 
  37.     {
  38.         if (strtoupper(substr(PHP_OS, 0, 3)) !== "WIN") {
  39.             return false;
  40.         }
  41.         
  42.         return true;
  43.     }//end isInstalled
  44. }//end class
  45. ?>