Lines Matching refs:link

2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - access/update file …
11 /* Prototype: bool symlink ( string $target, string $link );
12 Description: creates a symbolic link to the existing target with the specified name link
15 Description: Tells whether the given file is a symbolic link.
17 Prototype: bool link ( string $target, string $link );
18 Description: Create a hard link
21 Description: Gets information about a link
24 /* Variation 3 : Create file and a soft link to the file
25 Access data of the file through the soft link
26 Update the file through soft link
27 Check size of file and soft link link
31 echo "*** Accessing and updating data of file through soft link ***\n";
38 // create soft link to file
42 $link_stat = lstat($linkname); // lstat of link
43 $link_size = $link_stat[7]; // size of soft link
49 echo "\n-- Access data of the file through the soft link --\n";
53 echo "\n-- Check size of soft link and file --\n";
61 echo "\nSoft link size remains same \n";
63 echo "\nWarning: Soft link size has changed \n";
65 echo "\n-- Updating file with data through soft link --\n";
66 // append link with data
75 echo "\n-- Check size of soft link and file --\n";
83 echo "\nSoft link size remains same \n";
85 echo "\nWarning: Soft link size has changed \n";
87 echo "\n-- Updating file with data and check data through soft link --\n";
93 // now check link for data; it should echo "Hello World"
97 echo "\n-- Check size of soft link and file --\n";
105 echo "\nSoft link size remains same \n";
107 echo "\nWarning: Soft link size has changed \n";
109 // delete the link
117 *** Accessing and updating data of file through soft link ***
120 -- Access data of the file through the soft link --
123 -- Check size of soft link and file --
127 Soft link size remains same
129 -- Updating file with data through soft link --
132 -- Check size of soft link and file --
136 Soft link size remains same
138 -- Updating file with data and check data through soft link --
141 -- Check size of soft link and file --
145 Soft link size remains same