SimPCoRe
 
Home
Installation

Working with Nodes



Advanced

Tutorial

Installation

  1. Download the Latest Version of the PCR.
  2. Extract the zip file to your webserver
  3. Modify the pcr.xml configuration file located in the pcr/config folder to point to your database server.
  4. Create a new php file with the following code:

    <?php 
    $_SERVER['PCR'] = '/path/to/pcr/';
    
    set_include_path(get_include_path() . PATH_SEPARATOR . 
                     $_SERVER['PCR'] . PATH_SEPARATOR .
                     $_SERVER['PCR'] . 'PMs');
    
    function __autoload($className) {
      require_once "$className.php";
    }
    
    $credentials = new Credentials('mysql_username', 
                                   'mysql_password');
                                   
    $workspace = 'pcr'; //a workspace is the name of your 
                        //configuration file which is also 
                        //the name of the database you are 
                        //using
                          
    $session = Repository::login($credentials, $workspace);
    ?>

    This will set the PCR server variable and add the PCR library to your include path.

    Starting a session with the Credentials will create a table in your workspace.

  5. Now the PCR is ready for use.
 

SimPCoRe
Home | Tutorials and Installation Instructions | Documentation | Download | Contact Us | Google Group