.:Site Map:.

.:Wiki Actions:.

PmWiki uses the external programs diff and patch to store and restore previous versions of pages. While these programs are commonly available on most Unix systems, they are generally not available under Windows.

WinDiff (http://www.pmichaud.com/pub/windiff/windiff.zip) is a special package containing Windows versions of the diff and patch programs from the Gnuwin32 project. To use this package, simply create a windiff/ subdirectory in the directory that holds your pmwiki.php script and copy the files from the zip archive into that directory. Then, add the following lines to your local/config.php file:

    $SysDiffCmd = 'windiff\\diff';
    $SysPatchCmd = 'windiff\\patch --silent';

That should be all there is to it! Questions and comments can be sent to pmwiki-users@pmichaud.com.


Those with MSys already installed may find the following config lines helpful:

    $SysDiffCmd = 'C:/msys/1.0/bin/diff.exe';
    $SysPatchCmd = 'C:/msys/1.0/bin/patch.exe';


Thx! I also make my copy of Tavi on Win32 works with Diff now! (i.e. Tavi works with the Diff from PmWiki's but not from GNU utilities for Win32 nor Gnuwin32 project) -- AaronLaw , 2004-06-26 10:50

--- this solution WILL NOT work on the windows 2003 servers that will not allow foreign programs to work under IIS 6. you have to use php (sript versions) of difff and patch please find it here: http://www.pmwiki.org/wiki/Cookbook/PHPDiffEngine

Powered by GNU Emacs Valid XHTML 1.1! Valid CSS! yann.hodique@free.fr