Hi
I am new to unix - can anyone give me an idea of the characters i should NOT be using in unix filenames - ie: i know not to use spaces and backslashes but not much else.
Thanks John (1 Reply)
I 've configured jumpstart and everything is fine but the installation starts asking human intervention and go till NFS conifugration ..
Setting up Java. Please wait...
Serial console, reverting to text install
Beginning system identification...
Searching for configuration file(s)...
Using... (3 Replies)
I have a Solaris 10 U6 flash nothing has changed on my Jumpstart expect for some finish files and profiles.
after I jump either a client or a server I always get the same error
the following files in / differ from the boot archive
changed /kernel/drv/md.conf
then I enter in the root... (4 Replies)
Hi Gurus,
When i am running the ./check and i am getting below error
Error in files "rules", line 92
hostname sample_host - host_class set_root_pw
Error: Finish script missing: set_root_pw
i do not have any begin or finish define in my rules file it just marked as - , the content... (2 Replies)
Hi community,
I am installing Solaris 10 using a jumpstart installation. Both Server and Client are in the same netmask. When I perform the "boot net - install" command, I receive the following error:
Timeout waiting for ARP/RARP packets
Timeout waiting for ARP/RARP packets
Timeout... (1 Reply)
Hi ,
I am facing this issue while restoring flash archive from jumpstart server.The image was aroung 9 gb (5.9 release) and we have restored the other images successfully bigger than this size to other machines we have never faced this issue .Please advice me on this issue .
Extracted 100 %... (0 Replies)
Hi
actualy my two machines are sun sparc ultra 60. Both are same configuration. I am trying jumpstart Installation in my two machines, i got no errors in server side but in the client side actually it detects the server machine with correct hostname and domainname but after showed that it will... (2 Replies)
Hey All,
I'm trying to jump start a new Sun Server from an existing jump start server, but this last machine is giving me driver errors :s
It doesn't make sense as we've built a few of these exact same servers just recently, but this last one displays:
"No driver (or driver binding)... (2 Replies)
Hi,
I am trying to install Oracle Linux 6.5 on vmware workstation 9, but during the installation i am getting popup box with below message.
unsupported hardware detected
The hardware ( or a combination thereof) is not supported by Oracle Linux) .......
My laptop is having SSD SM871... (1 Reply)
Discussion started by: suren424
1 Replies
LEARN ABOUT PHP
xdiff_file_patch
XDIFF_FILE_PATCH(3) 1 XDIFF_FILE_PATCH(3)xdiff_file_patch - Patch a file with an unified diffSYNOPSIS
mixed xdiff_file_patch (string $file, string $patch, string $dest, [int $flags = DIFF_PATCH_NORMAL])
DESCRIPTION
Patches a $file with a $patch and stores the result in a file. $patch has to be an unified diff created by
xdiff_file_diff(3)/xdiff_string_diff(3) function. An optional $flags parameter specifies mode of operation.
PARAMETERS
o $file
- The original file.
o $patch
- The unified patch file. It has to be created using xdiff_string_diff(3), xdiff_file_diff(3) functions or compatible tools.
o $dest
- Path of the resulting file.
o $flags
- Can be either XDIFF_PATCH_NORMAL (default mode, normal patch) or XDIFF_PATCH_REVERSE (reversed patch). Starting from version
1.5.0, you can also use binary OR to enable XDIFF_PATCH_IGNORESPACE flag.
RETURN VALUES
Returns FALSE if an internal error happened, string with rejected chunks if patch couldn't be applied or TRUE if patch has been success-
fully applied.
EXAMPLES
Example #1
xdiff_file_patch(3) example
The following code applies unified diff to a file.
<?php
$old_version = 'my_script-1.0.php';
$patch = 'my_script.patch';
$errors = xdiff_file_patch($old_version, $patch, 'my_script-1.1.php');
if (is_string($errors)) {
echo "Rejects:
";
echo $errors;
}
?>
Example #2
Patch reversing example
The following code reverses a patch.
<?php
$new_version = 'my_script-1.1.php';
$patch = 'my_script.patch';
$errors = xdiff_file_patch($new_version, $patch, 'my_script-1.0.php', XDIFF_PATCH_REVERSE);
if (is_string($errors)) {
echo "Rejects:
";
echo $errors;
}
?>
SEE ALSO xdiff_file_diff(3).
PHP Documentation Group XDIFF_FILE_PATCH(3)