Home
last modified time | relevance | path

Searched refs:file (Results 251 – 275 of 1891) sorted by relevance

1...<<11121314151617181920>>...76

/PHP-5.3/ext/standard/tests/file/
H A Dbug39538.phpt7 $file = dirname(__FILE__) . "/bug39538.csv";
8 @unlink($file);
10 file_put_contents($file, $v);
11 print_r (fgetcsv(fopen($file, "r"), filesize($file)));
13 @unlink($file);
H A Dcopy_basic.phpt6 * Description: Makes a copy of the file source to dest.
10 echo "*** Testing copy() function: to copy file from source to destination --\n";
14 /* copying the file */
21 echo "-- Checking whether the copy of file exists --\n";
25 echo "-- Checking filepermissions of file and its copies --\n";
46 *** Testing copy() function: to copy file from source to destination --
50 -- Checking whether the copy of file exists --
53 -- Checking filepermissions of file and its copies --
H A Dlstat_stat_variation1.phpt2 Test lstat() and stat() functions: usage variations - effects of rename() on file
12 Description: Gives information about a file or symbolic link
15 Description: Gives information about a file
18 /* test the effects of rename() on stats of file */
21 require "$file_path/file.inc";
23 /* create temp file */
24 $fp = fopen("$file_path/lstat_stat_variation1.tmp", "w"); // temp file
27 // renaming a file and check stat
H A Dfile_variation9.phpt2 Test file function : variation - test various endings of a file
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";
29 var_dump(file($testfile));
36 *** Testing file() : variation ***
H A Dfscanf_variation53.phpt8 Description: Parses input from a file according to a format
11 /* Test fscanf() to read a file when file pointer is pointing to EOF */
15 echo "*** Test fscanf(): to read a file when file pointer is pointing to EOF ***\n";
32 // create an empty file
36 exit("Error:failed to open file $filename");
38 //writing data to the file
44 //closing the file
47 // opening file in $mode mode
50 exit("Error:failed to open file $filename");
57 // set the file pointer to eof
[all …]
H A Dfiletype_error.phpt7 Description: Returns the type of the file. Possible values are fifo, char,
8 dir, block, link, file, and unknown.
12 /* non-existing file or dir */
13 print( filetype("/no/such/file/dir") );
23 print( filetype("file", "file") );
29 Warning: filetype(): Lstat failed for /no/such/file/dir in %s on line %d
H A Dbug44805.phpt15 file_put_contents($file1, "this is file 1");
16 file_put_contents($file2, "this is file 2");
20 echo "reading file 2: ";
30 reading file 2: this is file 1
H A Dunlink_variation6.phpt8 * Description: Delete a file
9 * Source code: ext/standard/file.c
26 function f_exists($file) {
27 if (file_exists($file) == true) {
28 echo "$file exists\n";
31 echo "$file doesn't exist\n";
H A Dbug40374.phpt6 $file = tempnam(sys_get_temp_dir(), "test_");
7 var_dump($file);
8 $fp = fopen($file, "wt");
11 unlink($file);
H A Dfgetc_variation3.phpt7 Description: Gets character from file pointer
16 include ("file.inc");
18 echo "*** Testing fgetc() with file opened in write only mode ***\n";
27 echo "Error: failed to open file $filename!\n";
33 // rewind the file pointer to begining of the file
38 // read from file
40 var_dump( ftell($file_handle) ); // ensure that file pointer position is not changed
41 var_dump( feof($file_handle) ); // check if end of file pointer is set
43 // close the file
46 // delete the file
[all …]
H A Dfscanf_variation51.phpt2 Test fscanf() function: usage variations - file opened in write only mode
8 Description: Parses input from a file according to a format
11 /* Test fscanf() to scan a file for read when file is opened inwrite only mode */
15 echo "*** Test fscanf(): to read from a file opened in write only mode ***\n";
17 // create a file
21 exit("Error:failed to open file $filename");
22 //writing data to the file
25 //closing the file
40 // reading the values from file using different integer formats
45 exit("Error:failed to open file $filename");
[all …]
H A Dfgets_variation1.phpt7 Description: Gets a line from file pointer
15 include ("file.inc");
17 echo "*** Testing fgets() with file opened in write only mode ***\n";
26 echo "Error: failed to open file $filename!\n";
32 // rewind the file pointer to begining of the file
37 // read from file
39 var_dump( ftell($file_handle) ); // ensure that file pointer position is not changed
40 var_dump( feof($file_handle) ); // check if end of file pointer is set
42 // close the file
45 // delete the file
[all …]
H A Dlstat_stat_variation9.phpt2 Test lstat() and stat() functions: usage variations - deleting file/subdir
12 Description: Gives information about a file or symbolic link
15 Description: Gives information about a file
19 require "$file_path/file.inc";
21 /* test the effects on stats by deleting file/subdir from a dir
24 echo "*** Testing stat() for comparing stats after the deletion of subdir and file ***\n";
39 /* now delete the surdir and file and record the stat */
43 // comparing stats after the deletion of subdir and file
63 *** Testing stat() for comparing stats after the deletion of subdir and file ***
H A Dfgets_variation2.phpt7 Description: Gets a line from file pointer
11 - closed file handle
12 - unset file handle
16 include ("file.inc");
21 // open the file for reading
23 // close the file
26 // read from closed file
31 // open the file for reading
33 // unset the file handle
H A D005_error.phpt7 Description: Returns the time the file was last accessed, or FALSE
11 Description: Returns the time the file was last modified, or FALSE
27 var_dump( fileatime("/no/such/file/or/dir") );
28 var_dump( filemtime("/no/such/file/or/dir") );
29 var_dump( filectime("/no/such/file/or/dir") );
30 var_dump( touch("/no/such/file/or/dir", 10) );
46 var_dump( fileatime("/no/such/file/or/dir", "string") );
47 var_dump( filemtime("/no/such/file/or/dir", 100) );
48 var_dump( filectime("/no/such/file/or/dir", TRUE) );
49 var_dump( touch("/no/such/file/or/dir", 10, 100, 123) );
[all …]
H A Dfputcsv_variation9.phpt64 //close the file
70 //delete file
80 -- file opened in r+ --
91 -- file opened in r+b --
102 -- file opened in r+t --
113 -- file opened in a+ --
124 -- file opened in a+b --
146 -- file opened in w+ --
179 -- file opened in x+ --
212 -- file opened in r+ --
[all …]
H A Dglob_variation2.phpt17 // create temp file
18 $fp = fopen("$file_path/$dir_name/file.text", "w");
36 unlink("$file_path/glob_test/file.text");
43 string(11) "./file.text"
47 string(22) "../glob_test/file.text"
51 string(19) "glob_test/file.text"
/PHP-5.3/ext/fileinfo/
H A Dfileinfo.php12 foreach ($files as $file) {
13 echo finfo_file($res, $file) . "\n";
26 foreach ($files as $file) {
27 echo $fi->buffer(file_get_contents($file)) . "\n";
/PHP-5.3/Zend/tests/
H A Dbug52508.phpt6 $file = dirname(__FILE__) .'/bug52508.ini';
8 file_put_contents($file, "a = 1");
10 $ini_array = parse_ini_file($file, true, INI_SCANNER_RAW);
13 unlink($file);
/PHP-5.3/ext/spl/examples/
H A Ddbareader.inc3 /** @file dbareader.inc
25 * Open database $file with $handler in read only mode.
27 * @param file Database file to open.
30 function __construct($file, $handler) {
31 if (!$this->db = dba_open($file, 'r', $handler)) {
32 throw new exception('Could not open file ' . $file);
/PHP-5.3/tests/lang/
H A Dbug38579.phpt2 Bug #38579 (include_once() may include the same file twice)
11 $file = dirname(__FILE__)."/bug38579.inc";
12 include_once(strtolower($file));
13 include_once(strtoupper($file));
/PHP-5.3/scripts/dev/
H A Dcredits8 file=ext/standard/credits_$what.h
9 cat >$file <<END
18 CREDITS file instead
25 awk "$awkprog" $files | sort -f | uniq >> $file
26 echo "Updated $file"
/PHP-5.3/ext/bcmath/libbcmath/
H A Dconfig.h.in15 /* Define if you have the <lib.h> header file. */
18 /* Define if you have the <limits.h> header file. */
21 /* Define if you have the <stdarg.h> header file. */
24 /* Define if you have the <stddef.h> header file. */
27 /* Define if you have the <stdlib.h> header file. */
30 /* Define if you have the <string.h> header file. */
33 /* Define if you have the <unistd.h> header file. */
/PHP-5.3/ext/gd/tests/
H A Dbug41442.phpt24 /* file */
25 $file = dirname(__FILE__)."/bug41442.gd2";
26 imagegd2($res, $file);
27 $str2 = file_get_contents($file);
30 @unlink($file);
/PHP-5.3/ext/zip/tests/
H A Dbug64342_1.phpt2 Bug #64342 ZipArchive::addFile() has to check file existance (variation 2)
13 $file = $dirname . '__tmp_oo_addfile.zip';
15 copy($dirname . 'test.zip', $file);
18 if (!$zip->open($file)) {
30 @unlink($file);

Completed in 43 milliseconds

1...<<11121314151617181920>>...76