• PHP Video Tutorials

PHP - xdiff file_diff_binary() Function



xdiff_file_diff_binary() function can make a binary diff of two files.

Syntax

bool xdiff_file_diff_binary( string $old_file , string $new_file , string $dest )

xdiff_file_diff_binary() function can make a binary diff of two files and store the result in a file. This function can work with both text and binary files.

xdiff_file_diff_binary() function can return true on success or false on failure.

Example

<?php
   $old_version = "my_script_1.0.tgz";
   $new_version = "my_script_1.1.tgz";

   xdiff_file_diff_binary($old_version, $new_version, "my_script.bdiff");
?>
php_function_reference.htm
Advertisements