Lines Matching refs:file

2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - access/update file
16 Description: Tells whether the given file is a symbolic link.
25 /* Variation 3 : Create file and a soft link to the file
26 Access data of the file through the soft link
27 Update the file through soft link
28 Check size of file and soft link link
32 echo "*** Accessing and updating data of file through soft link ***\n";
33 // Creating file and inserting data into it
36 // create temp file
37 $file = fopen($filename, "w");
39 // create soft link to file
46 // fill data into file
47 fwrite($file, str_repeat("text", 20) );
48 fclose($file);
50 echo "\n-- Access data of the file through the soft link --\n";
54 echo "\n-- Check size of soft link and file --\n";
66 echo "\n-- Updating file with data through soft link --\n";
72 // now check temp file for data; it should append "Hello World"
76 echo "\n-- Check size of soft link and file --\n";
88 echo "\n-- Updating file with data and check data through soft link --\n";
89 // write to temp file
90 $file = fopen($filename, "w");
91 fwrite($file, "Hello World");
92 fclose($file);
98 echo "\n-- Check size of soft link and file --\n";
112 // delete the temporary file
118 *** Accessing and updating data of file through soft link ***
121 -- Access data of the file through the soft link --
124 -- Check size of soft link and file --
130 -- Updating file with data through soft link --
133 -- Check size of soft link and file --
139 -- Updating file with data and check data through soft link --
142 -- Check size of soft link and file --