Re: [PHP] Hard links
BAO RuiXian wrote: Ryan A wrote: [snip...] the source and target files are on the same filesystem. My (simple) question is: What is "hard links"? never really heard of it and googles no help either. Am I missing something? A link is called hard link when its system-file-identifier (SFID) is added to the current directory entry. The opposite is called soft link or symbolic link, when only the path name is added to the direcotry entry. You can think of hard links as of reference variables in php: $a = 5; $b =& $a; $b would be a "hard link" to $a. In fact they are completely equal, they are both references to the same memory location, if you unset $a, $b is still valid. The same goes with filesystem hardlinks - you can remove the original file (in fact you only "unlink" it) and the other hardlink is still valid. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hard links
Ryan A wrote: [snip...] the source and target files are on the same filesystem. My (simple) question is: What is "hard links"? never really heard of it and googles no help either. Am I missing something? A link is called hard link when its system-file-identifier (SFID) is added to the current directory entry. The opposite is called soft link or symbolic link, when only the path name is added to the direcotry entry. Best Bao Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Hard links
Hey, I was just going through the ioncube manual (thinking of making something like that, but much cheaper so everyone can afford itmaybe $20?) and came accross this: 3.5.1 Copying with Hard Links [--use-hard-links] The Encoder will normally perform a file copy into the target for non-encoded files. This is fast but performance can be improved and disc space saved by using the --use-hard-links option to copy by using hard links. This feature is only available with Unix encoders and only if the source and target files are on the same filesystem. My (simple) question is: What is "hard links"? never really heard of it and googles no help either. Am I missing something? Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php