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.