PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Christian Vigh   PHP Wamp Server Installation Manager   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Wamp Server Installation Manager
Monitor and manage a Wamp setup on Windows
Author: By
Last change:
Date: 7 years ago
Size: 1,564 bytes
 

Contents

Class file image Download
<?php
/**************************************************************************************************************

    Example script that prints out your current configuration of WAMP.

    Note that the WampManager class package has the following dependencies :

    - https://www.phpclasses.org/package/10004-PHP-Retrieve-the-letters-of-the-drives-on-Windows.html
    - https://www.phpclasses.org/package/10248-PHP-Encapsulates-the-WShell-Script-Windows-object.html
    - https://www.phpclasses.org/package/10001-PHP-Query-local-and-remote-Windows-systems-with-WMI.html
    - https://www.phpclasses.org/package/9413-PHP-Load-and-edit-configuration-INI-format-files.html
    - https://www.phpclasses.org/package/10018-PHP-Manage-file-and-folder-paths-in-Windows-and-Linux.html

    However, for your own convenience, the Src directory which contains the WampManager classes has a
    subdirectory called Dependencies, which contains all the required source files. Note however that they
    may not be the latest releases ! but the current versions are sufficient to make the package working.

 **************************************************************************************************************/

require ( 'Src/WampManager.phpclass' ) ;

if (
php_sapi_name ( ) != 'cli' )
    echo (
"<pre>" ) ;

// Create a WampManager instance - the installation directory will be searched first in the path pointed to by
// the WAMPDIR environment variable (if you defined it) then on all the non-removable drives present on your system.
$wamp = new WampManager ( ) ;

print_r ( $wamp ) ;