Skip to content

Instantly share code, notes, and snippets.

@chregu
Created November 18, 2010 15:51
Show Gist options
  • Save chregu/705157 to your computer and use it in GitHub Desktop.
Save chregu/705157 to your computer and use it in GitHub Desktop.
<?php
include('./src/jackalope/autoloader.php');
$user = 'admin';
$pass = 'admin';
$workspace = 'default';
$cred = new \PHPCR\SimpleCredentials($user, $pass);
$repo = new \jackalope\Repository('http://localhost:8080/server', null); //let jackalope factory create the transport
$sess = $repo->login($cred, $workspace);
$node = $sess->getNode('/foo.pdf/jcr:content');
print $node->getProperty("jcr:lastModified")->getString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment