Home
last modified time | relevance | path

Searched refs:file (Results 176 – 200 of 1891) sorted by relevance

12345678910>>...76

/PHP-5.3/ext/standard/tests/file/
H A Dfgetcsv_variation3.phpt47 echo "Error: failed to create file $filename!\n";
62 // else rewind the file pointer to begining of the file
67 // rewind the file pointer to bof
78 // check the file pointer position and if eof
82 // close the file
84 //delete file
94 -- Testing fgetcsv() with file opened using r mode --
101 -- Testing fgetcsv() with file opened using rb mode --
108 -- Testing fgetcsv() with file opened using rt mode --
115 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation4.phpt47 echo "Error: failed to create file $filename!\n";
61 // else rewind the file pointer to begining of the file
66 // rewind the file pointer to bof
77 // check the file pointer position and if eof
81 // close the file
83 //delete file
93 -- Testing fgetcsv() with file opened using r mode --
100 -- Testing fgetcsv() with file opened using rb mode --
107 -- Testing fgetcsv() with file opened using rt mode --
114 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation5.phpt50 echo "Error: failed to create file $filename!\n";
64 // else rewind the file pointer to begining of the file
69 // rewind the file pointer to bof
79 // check the file pointer position and if eof
83 // close the file
85 //delete file
95 -- Testing fgetcsv() with file opened using r mode --
102 -- Testing fgetcsv() with file opened using rb mode --
109 -- Testing fgetcsv() with file opened using rt mode --
116 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfile_put_contents.phpt10 $file = dirname(__FILE__)."/file_put_contents.txt";
14 var_dump(file_put_contents($file, $context));
15 var_dump(file_put_contents($file, new stdClass));
16 var_dump(file_put_contents($file, new foo));
17 $fp = fopen($file, "r");
18 var_dump(file_put_contents($file, "string", 0, $fp));
20 @unlink($file);
H A Dstat_variation3-win32.phpt2 Test stat() functions: usage variations - effects of creating/deleting the dir/file
14 * Description: Gives information about a file
17 /* test the effects of creating & deleting of subdir/file on the stats of dir/file */
20 require "$file_path/file.inc";
23 /* create temp file and directory */
26 echo "*** Testing stat(): with creating & deleting subdir/file ***\n";
29 echo "-- Testing stat() on dir after subdir and file is created in it --\n";
51 // comparing stats after the deletion of subdir and file
70 *** Testing stat(): with creating & deleting subdir/file ***
71 -- Testing stat() on dir after subdir and file is created in it --
[all …]
H A Dlstat_stat_variation13.phpt2 Test lstat() and stat() functions: usage variations - file opened using w and r mode
13 Description: Gives information about a file or symbolic link
16 Description: Gives information about a file
19 /* use stat on file created using "w" and "r" mode of fopen */
22 require "$file_path/file.inc";
27 echo "*** Checking stat() on a file opened using read/write mode ***\n";
28 $file_handle = fopen($filename, "w"); // create file
34 // opening file again in read mode
35 $file_handle = fopen($filename, "r"); // read file
53 *** Checking stat() on a file opened using read/write mode ***
H A Dstat_variation5-win32.phpt2 Test stat() functions: usage variations - file opened in read/write mode
14 * Description: Gives information about a file
17 /* test the stats of file opened in write mode and then same in read mode */
20 require "$file_path/file.inc";
23 $file_handle = fopen("$file_path/stat_variation5.tmp", "w"); // temp file
27 echo "\n*** Testing stat(): on a file with read/write permission ***\n";
30 $file_handle = fopen($filename, "w"); // create file
36 // opening file again in read mode
37 $file_handle = fopen($filename, "r"); // read file
60 *** Testing stat(): on a file with read/write permission ***
H A Dstream_001.phpt6 var_dump(stream_wrapper_unregister('file'));
7 var_dump(fopen("file://".__FILE__, "r"));
8 var_dump(stream_wrapper_restore('file'));
9 var_dump(fopen("file://".__FILE__, "r"));
16 Warning: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configur…
18 Warning: fopen(): file:// wrapper is disabled in the server configuration in %s on line %d
20 Warning: fopen(file://%s): failed to open stream: no suitable wrapper could be found in %s on line …
H A D007_variation9.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "rt" mode,
18 checking for the file creation, write & read operations,
19 checking for the file pointer position,
23 require($file_path."/file.inc");
26 $file = $file_path."/007_variation9.tmp";
30 $file_handle = fopen($file, "rt"); //opening the file in "rt" mode
33 var_dump( ftell($file_handle) ); //Initial position of file pointer
36 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
H A D007_variation1.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "r" mode,
18 checking for the file creation, write & read operations,
19 checking for the file pointer position,
23 require($file_path."/file.inc");
26 $file = $file_path."/007_variation1.tmp";
30 $file_handle = fopen($file, "r"); //opening the file in "r" mode
33 var_dump( ftell($file_handle) ); //Initial position of file pointer
36 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
H A D007_variation17.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "rb" mode,
18 checking for the file creation, write & read operations,
19 checking for the file pointer position,
23 require($file_path."/file.inc");
26 $file = $file_path."/007_variation17.tmp";
30 $file_handle = fopen($file, "rb"); //opening the file in "rb" mode
33 var_dump( ftell($file_handle) ); //Initial position of file pointer
36 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
H A Dfgetcsv_variation17.phpt45 echo "Error: failed to create file $filename!\n";
58 // else rewind the file pointer to begining of the file
63 // rewind the file pointer to bof
74 // check the file pointer position and if eof
80 // check the file pointer position and if eof
84 // close the file
86 //delete file
96 -- Testing fgetcsv() with file opened using r mode --
112 -- Testing fgetcsv() with file opened using rb mode --
128 -- Testing fgetcsv() with file opened using rt mode --
[all …]
H A Dfgetcsv_variation6.phpt50 echo "Error: failed to create file $filename!\n";
64 // else rewind the file pointer to begining of the file
69 // rewind the file pointer to bof
80 // check the file pointer position and if eof
85 // check the file pointer position and if eof
89 // close the file
91 //delete file
101 -- Testing fgetcsv() with file opened using r mode --
117 -- Testing fgetcsv() with file opened using rb mode --
133 -- Testing fgetcsv() with file opened using rt mode --
[all …]
H A Dfgetcsv_variation19.phpt46 echo "Error: failed to create file $filename!\n";
59 // else rewind the file pointer to begining of the file
64 // rewind the file pointer to bof
76 // check the file pointer position and if eof
80 // close the file
82 //delete file
92 -- Testing fgetcsv() with file opened using r mode --
102 -- Testing fgetcsv() with file opened using rb mode --
112 -- Testing fgetcsv() with file opened using rt mode --
122 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Duserwrapper.phpt6 function unlink($file) {
7 print "Unlinking file: $file\n";
23 /* By printing out a notice that we are actively stating the file
26 print "Stating file: $path\n";
36 unlink('test://example.com/path/to/file');
42 print_r(stat('test://example.com/path/to/file'));
43 echo "Filesize = " . filesize('test://example.com/path/to/file') . "\n";
44 echo "filemtime = " . filemtime('test://example.com/path/to/file') . "\n";
47 Unlinking file: test://example.com/path/to/file
51 Stating file: test://example.com/path/to/file
H A Dfile_variation8.phpt2 Test file function : variation - various absolute and relative paths
7 /* Prototype : array file(string filename [, int flags[, resource context]])
8 * Description: Read entire file into an array
9 * Source code: ext/standard/file.c
13 echo "*** Testing file() : variation ***\n";
52 var_dump(file($dir."/".$filename));
63 *** Testing file() : variation ***
91 Warning: file(%sfileVar8.dir/fileVar8Sub/..///fileVar8Sub//..//../fileVar8Sub/FileGetContentsVar7.t…
96 Warning: file(%sfileVar8.dir/fileVar8Sub/BADDIR/FileGetContentsVar7.tmp): failed to open stream: No…
125 Warning: file(BADDIR/FileGetContentsVar7.tmp): failed to open stream: No such file or directory in …
/PHP-5.3/ext/standard/tests/strings/
H A Dmd5_file.phpt7 * Description: Calculate the MD5 hash of a given file
10 /* Creating an empty file */
14 /* Creating a data file */
18 /* Writing into file */
20 $content = "Add this to the file\n";
23 echo "Cannot write to file ($filename)";
53 /* Hexadecimal Output for Empty file as input */
57 /* Raw Binary Output for Empty file as input */
96 *** Hexadecimal Output for Empty file as Argument ***
99 *** Raw Binary Output for Empty file as Argument ***
[all …]
/PHP-5.3/Zend/tests/
H A Ddebug_backtrace_options.phpt76 [file] => %sdebug_backtrace_options.php
87 [file] => %sdebug_backtrace_options.php
101 [file] => %sdebug_backtrace_options.php
120 [file] => %sdebug_backtrace_options.php
139 [file] => %sdebug_backtrace_options.php
151 [file] => %sdebug_backtrace_options.php
165 [file] => %sdebug_backtrace_options.php
184 [file] => %sdebug_backtrace_options.php
203 [file] => %sdebug_backtrace_options.php
215 [file] => %sdebug_backtrace_options.php
[all …]
/PHP-5.3/ext/phar/phar/
H A Dphar.php35 function command_include($file) argument
37 $file = 'phar://' . __FILE__ . '/' . $file;
38 if (file_exists($file)) {
39 include($file);
/PHP-5.3/ext/spl/tests/
H A DDirectoryIterator_getExtension_basic.phpt15 foreach ($files as $file) {
16 touch($dir . $file);
23 foreach (new DirectoryIterator($dir) as $file) {
24 if (in_array($file->getFilename(), $skip)) {
27 $dit_exts[] = $file->getExtension();
28 $nfo_exts[] = pathinfo($file->getFilename(), PATHINFO_EXTENSION);
38 foreach ($files as $file) {
39 unlink($dir . $file);
H A DSplFileInfo_getExtension_basic.phpt5 $file = md5('SplFileInfo::getExtension');
8 touch($file . $ext);
9 $info = new SplFileInfo($file . $ext);
10 var_dump($info->getExtension(), pathinfo($file . $ext, PATHINFO_EXTENSION));
15 $file = md5('SplFileInfo::getExtension');
18 unlink($file . $ext);
/PHP-5.3/ext/standard/tests/image/
H A Diptcembed_001.phpt2 iptcembed() and wrong file
6 $file = dirname(__FILE__).'/iptcembed_001.data';
7 $fp = fopen($file, "w");
11 var_dump(iptcembed(-1, $file, -1));
12 unlink($file);
/PHP-5.3/ext/standard/tests/dir/
H A Drewinddir_variation3.phpt2 Test rewinddir() function : usage variations - file pointers
12 * Pass a file pointer to rewinddir() to test behaviour
17 echo "\n-- Open a file using fopen --\n";
24 echo "\n-- Check if rewinddir() has repositioned the file pointer --\n";
26 echo "rewinddir() works on file pointers\n";
28 echo "rewinddir() does not work on file pointers\n";
35 -- Open a file using fopen --
41 -- Check if rewinddir() has repositioned the file pointer --
42 rewinddir() does not work on file pointers
/PHP-5.3/ext/mysqli/tests/
H A Dlocal_infile_tools.inc3 function shutdown_clean($file) {
4 if ($file) {
5 unlink($file);
28 if (!$file) {
51 // create a CVS file
55 printf("[%03d + 1] Cannot create CVS file '%s'\n", $offset, $file);
67 printf("[%03d + 2] Cannot write CVS file '%s'\n", $offset, $file);
75 printf("[%03d + 3] Cannot write CVS file '%s'\n", $offset, $file);
82 if (!chmod($file, 0644)) {
85 $offset, $file);
[all …]
/PHP-5.3/ext/zlib/tests/
H A Dgzopen_variation4.phpt12 * Description: Open a .gz-file and return a .gz-file pointer
49 // should read dir2 file
55 //create a file in dir1
60 //should now read dir1 file
111 This is a file in dir2
112 This is a file in dir1
113 This is a file in dir1
115 This is a file in script dir
155 This is a file in dir2
156 This is a file in dir1
[all …]

Completed in 81 milliseconds

12345678910>>...76