Home
last modified time | relevance | path

Searched refs:file (Results 51 – 75 of 1763) sorted by relevance

12345678910>>...71

/PHP-5.3/ext/standard/tests/file/
H A D007_variation3.phpt9 Description: Opens file or URL.
20 checking for the file truncation when trying to open an existing file in "w" mode,
24 require($file_path."/file.inc");
31 $file_handle = fopen($file, "w"); //opening the file "w" mode
34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the begining of the
43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w"…
45 fclose( fopen($file, "w") ); //Opening the existing data file again in "w" mode
46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w" …
49 unlink($file); //Deleting the file
50 fclose( fopen($file, "w") ); //Opening the non-existing file in "w" mode, which will be created
[all …]
H A D007_variation11-win32.phpt14 Description: Opens file or URL.
25 checking for the file truncation when trying to open an existing file in "wt" mode,
29 require($file_path."/file.inc");
36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the begining of the
48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt…
50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode
51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"…
54 unlink($file); //Deleting the file
55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
[all …]
H A D007_variation19.phpt9 Description: Opens file or URL.
20 checking for the file truncation when trying to open an existing file in "wb" mode,
24 require($file_path."/file.inc");
31 $file_handle = fopen($file, "wb"); //opening the file "wb" mode
34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the begining of the
43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wb…
45 fclose( fopen($file, "wb") ); //Opening the existing data file again in "wb" mode
46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wb"…
49 unlink($file); //Deleting the file
50 fclose( fopen($file, "wb") ); //Opening the non-existing file in "wb" mode, which will be created
[all …]
H A Dfputcsv_variation10.phpt56 //close the file
62 //delete file
72 -- file opened in r+ --
79 -- file opened in r+b --
86 -- file opened in r+t --
93 -- file opened in a+ --
114 -- file opened in w+ --
135 -- file opened in x+ --
156 -- file opened in r+ --
180 -- file opened in a+ --
[all …]
H A Dcopy_variation3-win32.phpt26 /* array of destination file names */
33 " ", //blank space as file name
50 echo "Existence of destination file => ";
54 echo "Destination file name => ";
58 echo "Size of source file => ";
62 echo "Size of destination file => ";
86 Existence of destination file => bool(true)
88 Size of source file => int(1500)
89 Size of destination file => int(1500)
95 Size of source file => int(1500)
[all …]
H A D007_variation12-win32.phpt14 Description: Opens file or URL.
25 checking for the file truncation when trying to open an existing file in "w+t" mode,
29 require($file_path."/file.inc");
36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode
39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the begining of the
48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
50 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode
51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+t…
54 unlink($file); //Deleting the file
55 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created
[all …]
H A D007_variation12.phpt14 Description: Opens file or URL.
25 checking for the file truncation when trying to open an existing file in "w+t" mode,
29 require($file_path."/file.inc");
36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode
39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the begining of the
48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
50 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode
51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+t…
54 unlink($file); //Deleting the file
55 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created
[all …]
H A D007_variation20.phpt9 Description: Opens file or URL.
20 checking for the file truncation when trying to open an existing file in "w+b" mode,
24 require($file_path."/file.inc");
31 $file_handle = fopen($file, "w+b"); //opening the file "w+b" mode
34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the begining of the
43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
45 fclose( fopen($file, "w+b") ); //Opening the existing data file again in "w+b" mode
46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+b…
49 unlink($file); //Deleting the file
50 fclose( fopen($file, "w+b") ); //Opening the non-existing file in "w+b" mode, which will be created
[all …]
H A Dfile_error.phpt2 Test file() function : error conditions
7 Description: Reads entire file into an array
8 Returns the file in an array
12 $file_handle = fopen($file_path."/file.tmp", "w");
13 var_dump( file() ); // Zero No. of args
15 $filename = $file_path."/file.tmp";
19 var_dump( file($filename, 10, NULL) ); // Incorrect flag
21 var_dump( file("temp.tmp") ); // non existing filename
29 unlink($file_path."/file.tmp");
33 Warning: file() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Dcopy_variation5.phpt26 /* array of destination file names */
52 echo "Destination file name => ";
56 echo "Size of source file => ";
60 echo "Size of destination file => ";
89 Destination file name => %s/COPY.tmp
90 Size of source file => int(1500)
91 Size of destination file => int(1500)
96 Destination file name => %s/COPY.TMP
97 Size of source file => int(1500)
103 Destination file name => %s/CopY.TMP
[all …]
H A Dcopy_variation5-win32.phpt26 /* array of destination file names */
52 echo "Destination file name => ";
56 echo "Size of source file => ";
60 echo "Size of destination file => ";
90 Destination file name => %s/COPY.tmp
91 Size of source file => int(1500)
92 Size of destination file => int(1500)
97 Destination file name => %s/COPY.TMP
98 Size of source file => int(1500)
104 Destination file name => %s/CopY.TMP
[all …]
H A D007_variation11.phpt14 Description: Opens file or URL.
25 checking for the file truncation when trying to open an existing file in "wt" mode,
29 require($file_path."/file.inc");
36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the begining of the
48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt…
50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode
51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"…
54 unlink($file); //Deleting the file
55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
[all …]
H A Dfgetss_basic1.phpt12 // include the common file related test functions
13 include ("file.inc");
36 create_file ($filename); //create an empty file
40 echo "Error: failed to open file $filename!\n";
45 /* read entire file and strip tags */
52 /* read entire file and strip tags tags */
58 // close the file
61 // delete the file
76 -- fgets() with length = 30, file pointer at 0 --
87 -- fgets() with length = 30, file pointer at 0 --
[all …]
H A Dfgetcsv_variation26.phpt43 echo "Error: failed to create file $filename!\n";
57 // rewind the file pointer to bof
66 // check the file pointer position and if eof
70 // close the file
72 //delete file
82 -- Testing fgetcsv() with file opened using w mode --
97 -- Testing fgetcsv() with file opened using a mode --
112 -- Testing fgetcsv() with file opened using x mode --
127 -- Testing fgetcsv() with file opened using w mode --
142 -- Testing fgetcsv() with file opened using a mode --
[all …]
H A Dfgetcsv_variation8.phpt50 echo "Error: failed to create file $filename!\n";
65 // else rewind the file pointer to begining of the file
70 // rewind the file pointer to bof
83 // check the file pointer position and if eof
87 // close the file
89 //delete file
99 -- Testing fgetcsv() with file opened using r mode --
107 -- Testing fgetcsv() with file opened using rb mode --
115 -- Testing fgetcsv() with file opened using rt mode --
123 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfile_variation2.phpt7 * Source code: ext/standard/file.c
112 Error: 2 - file(0): failed to open stream: No such file or directory, %s(%d)
116 Error: 2 - file(1): failed to open stream: No such file or directory, %s(%d)
120 Error: 2 - file(12345): failed to open stream: No such file or directory, %s(%d)
124 Error: 2 - file(-2345): failed to open stream: No such file or directory, %s(%d)
128 Error: 2 - file(10.5): failed to open stream: No such file or directory, %s(%d)
132 Error: 2 - file(-10.5): failed to open stream: No such file or directory, %s(%d)
136 Error: 2 - file(123456789000): failed to open stream: No such file or directory, %s(%d)
144 Error: 2 - file(0.5): failed to open stream: No such file or directory, %s(%d)
172 Error: 2 - file(1): failed to open stream: No such file or directory, %s(%d)
[all …]
H A Dfgetcsv_variation29.phpt2 Test fgetcsv() : usage variations - with only file handle as argument, file pointer pointing at end…
11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file
15 echo "*** Testing fgetcsv() : with file handle as only argument and file pointer pointing at end of…
60 // else rewind the file pointer to begining of the file
68 // set the file pointer to EOF
73 // now file pointer should point to end of the file, try reading again
76 // check the file pointer position and if eof
79 // close the file
81 //delete file
89 *** Testing fgetcsv() : with file handle as only argument and file pointer pointing at end of file
[all …]
H A Dfgetcsv_variation9.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
81 // check the file pointer position and if eof
85 // close the file
87 //delete file
97 -- Testing fgetcsv() with file opened using r mode --
105 -- Testing fgetcsv() with file opened using rb mode --
113 -- Testing fgetcsv() with file opened using rt mode --
121 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfread_variation3-win32.phpt19 // include the file.inc for common functions for test
20 include ("file.inc");
31 // print file pointer position before read
45 // file pointer position after read
47 // check if file pointer at eof()
86 // read file by giving size more than its size
95 // try fread when file pointer at end
97 //reading file when file pointer at end
102 // now close the file
105 // delete the file created
[all …]
H A Dfread_variation3.phpt19 // include the file.inc for common functions for test
20 include ("file.inc");
31 // print file pointer position before read
45 // file pointer position after read
47 // check if file pointer at eof()
86 // read file by giving size more than its size
95 // try fread when file pointer at end
97 //reading file when file pointer at end
102 // now close the file
105 // delete the file created
[all …]
H A Dfread_variation4-win32.phpt19 // include the file.inc for common functions for test
20 include ("file.inc");
31 // print file pointer position before read
45 // file pointer position after read
47 // check if file pointer at eof()
85 // read file by giving size more than its size
93 // try fread when file pointer at end
95 //reading file when file pointer at end
100 // now close the file
103 // delete the file created
[all …]
H A Dfread_variation4.phpt19 // include the file.inc for common functions for test
20 include ("file.inc");
31 // print file pointer position before read
45 // file pointer position after read
47 // check if file pointer at eof()
85 // read file by giving size more than its size
93 // try fread when file pointer at end
95 //reading file when file pointer at end
100 // now close the file
103 // delete the file created
[all …]
H A Dfgetcsv_variation30.phpt2 Test fgetcsv() : usage variations - with file handle and length, file pointer pointing at end of fi…
11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file
15 echo "*** Testing fgetcsv() : with file handle and length arguments, file pointer pointing at end o…
46 echo "Error: failed to create file $filename!\n";
67 // set the file pointer to EOF
72 // now file pointer should point to end of the file, try reading again
75 // check the file pointer position and if eof
78 // close the file
80 //delete file
88 *** Testing fgetcsv() : with file handle and length arguments, file pointer pointing at end of file
[all …]
/PHP-5.3/scripts/dev/
H A Dextern_c.php6 foreach (glob("$dir/*") as $file) {
7 if (is_dir($file)) {
8 if (basename($file) != "CVS") {
9 scan_dir($file);
11 } else if (fnmatch("*.h", $file)) {
12 scan_file($file);
17 function scan_file($file) { argument
20 foreach (file($file) as $nr => $line) {
30 if (!$flag) echo "$file:".($nr+1)." $line";
/PHP-5.3/ext/standard/tests/image/
H A Dgetimagesize_basic.phpt11 // GIF file
14 //JPEG file
17 //PNG file
20 //SWF file
23 //BMP file
29 //JPC file
32 //JP2 file
35 //IFF file
52 -- GIF image file (200x100.gif) --
94 -- PNG image file (200x100.png) --
[all …]

Completed in 51 milliseconds

12345678910>>...71