Lines Matching refs:file
14 @unlink('test.file');
15 if (file_exists('test.file')) {
16 echo "test.file exists\n";
18 echo "test.file does not exist\n";
20 fclose (fopen('test.file', 'w'));
21 chmod ('test.file', 0744);
22 if (file_exists('test.file')) {
23 echo "test.file exists\n";
25 echo "test.file does not exist\n";
27 if (is_link('test.file')) {
28 echo "test.file is a symlink\n";
30 echo "test.file is not a symlink\n";
32 if (file_exists('test.file')) {
33 echo "test.file exists\n";
35 echo "test.file does not exist\n";
37 $s = stat ('test.file');
38 $ls = lstat ('test.file');
41 echo "test.file lstat and stat differ at element $i\n";
44 echo "test.file is " . filetype('test.file') . "\n";
45 printf ("test.file permissions are 0%o\n", 0777 & fileperms('test.file'));
46 echo "test.file size is " . filesize('test.file') . "\n";
47 if (is_writeable('test.file')) {
48 echo "test.file is writeable\n";
50 echo "test.file is not writeable\n";
52 if (is_readable('test.file')) {
53 echo "test.file is readable\n";
55 echo "test.file is not readable\n";
57 if (is_file('test.file')) {
58 echo "test.file is a regular file\n";
60 echo "test.file is not a regular file\n";
62 if (is_dir('../file')) {
63 echo "../file is a directory\n";
65 echo "../file is not a directory\n";
67 if (is_dir('test.file')) {
68 echo "test.file is a directory\n";
70 echo "test.file is not a directory\n";
72 unlink('test.file');
73 if (file_exists('test.file')) {
74 echo "test.file exists (cached)\n";
76 echo "test.file does not exist\n";
79 if (file_exists('test.file')) {
80 echo "test.file exists\n";
82 echo "test.file does not exist\n";
86 test.file does not exist
87 test.file exists
88 test.file is not a symlink
89 test.file exists
90 test.file is file
91 test.file permissions are 0666
92 test.file size is 0
93 test.file is writeable
94 test.file is readable
95 test.file is a regular file
96 ../file is a directory
97 test.file is not a directory
98 test.file does not exist
99 test.file does not exist