How to make reflinks in PHP?

1 day ago 1
ARTICLE AD BOX

1 Answer

3

I don't think there is a PHP function which do it directly, but you may use system or exec to execute a command on the underlying system:

<?php system('cp --reflink=always <path1> <path2>', $result_code); // $result_code holds command execution return status if ($result_code == 0) { // Success }

answered 14 hours ago

Jubei's user avatar

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Sign up or log in

Sign up using Google

Sign up using Email and Password

Post as a guest

Name

Email

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.

Read Entire Article