My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
getFile  
public function getFile($file,$version=-1)
Function-Reference, Language-EN
Updated Feb 4, 2010 by deadpan...@gmail.com

getFile

This method returns the contents of $file from the version $version of the repository.

  • @param string $file File pathname
  • @param integer $version File Version
  • @return string File content

Usage

getFile($file, $version);

Example

Get the contents of a file from /trunk/ directory using the latest repository version.

$url = 'http://phpsvnclient.googlecode.com/svn/';

require_once("phpsvnclient.php");
$phpsvnclient = new phpsvnclient($url);

$file_content = $phpsvnclient->getFile('trunk/phpsvnclient.php');

Sign in to add a comment
Powered by Google Project Hosting