Home
last modified time | relevance | path

Searched refs:filename (Results 126 – 150 of 1077) sorted by relevance

12345678910>>...44

/PHP-5.6/ext/standard/tests/file/
H A Dfscanf_variation51.phpt18 $filename = "$file_path/fscanf_variation51.tmp";
19 $file_handle = fopen($filename, "w");
21 exit("Error:failed to open file $filename");
43 $file_handle = fopen($filename, $mode);
45 exit("Error:failed to open file $filename");
55 unlink($filename);
63 $filename = "$file_path/fscanf_variation51.tmp";
64 if(file_exists($filename)) {
65 unlink($filename);
H A Dsymlink_link_linkinfo_is_link_variation7.phpt14 Prototype: bool is_link ( string $filename );
29 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp";
37 $fp = fopen($filename, "w");
41 // create soft link to $filename
42 var_dump( symlink($filename, $linkname) );
57 // create hard link to $filename
58 var_dump( link($filename, $linkname) );
70 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp";
71 unlink($filename);
H A Dreadfile_variation6.phpt7 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
23 $filename = "afile.txt";
24 $secondFile = $dir2."/".$filename;
36 global $secondFile, $filename;
40 readfile($filename, true);
H A Dreadfile_variation7.phpt7 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]])
23 $filename = "readFileVar7.tmp";
24 $scriptLocFile = dirname(__FILE__)."/".$filename;
36 global $scriptLocFile, $filename;
40 readfile($filename, true);
H A D005_variation2-win32.phpt14 Prototype: int fileatime ( string $filename );
18 Prototype: int filemtime ( string $filename );
22 Prototype: int filectime ( string $filename );
26 Prototype: bool touch ( string $filename [, int $time [, int $atime]] );
28 named in the filename parameter to the value given in time.
32 Prototype: void stat_fn(string $filename);
35 function stat_fn( $filename ) {
36 echo "\n-- File '$filename' --\n";
38 echo fileatime($filename)."\n";
41 echo filemtime($filename)."\n";
[all …]
H A Dfile_get_contents_variation1.phpt7 /* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource conte…
24 $filename = "afile.txt";
25 $secondFile = $dir2."/".$filename;
37 global $secondFile, $filename;
41 $line = file_get_contents($filename, true);
H A Dfile_get_contents_variation2.phpt7 /* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource conte…
25 $filename = 'FileGetContentsVar2.tmp';
26 $scriptLocFile = dirname(__FILE__)."/".$filename;
38 global $scriptLocFile, $filename;
42 $line = file_get_contents($filename, true);
H A Dis_file_variation3.phpt5 /* Prototype: bool is_file ( string $filename );
6 Description: Tells whether the filename is a regular file
7 Returns TRUE if the filename exists and is a regular file
32 foreach( $filenames as $filename ) {
33 var_dump( is_file($filename) );
H A Dchmod_variation2-win32.phpt20 $filename = basename($filepath);
25 var_dump(chmod("./$test_dirname/../$filename", 0777));
26 var_dump(chmod("./$test_dirname/../$filename", 0755));
32 var_dump(chmod("./$test_dirname/bad_dir/../../$filename", 0755));
38 var_dump(chmod("../$filename", 0777));
39 var_dump(chmod("../$filename", 0755));
H A Dis_file_variation1.phpt5 /* Prototype: bool is_file ( string $filename );
6 Description: Tells whether the filename is a regular file
7 Returns TRUE if the filename exists and is a regular file
16 $filename = $file_path."/is_file_variation1.tmp";
17 $file_handle = fopen($filename, "w" );
20 var_dump( is_file($filename) );
H A Dfile_put_contents_variation4.phpt20 $filename = basename(__FILE__, ".php") . ".tmp";
37 global $filename;
40 file_put_contents($filename, (binary) "File in include path", FILE_USE_INCLUDE_PATH);
41 $line = file_get_contents($filename);
43 unlink($filename);
H A Dfscanf_variation52.phpt33 $filename = "$file_path/fscanf_variation52.tmp";
34 $file_handle = fopen($filename, "w");
36 exit("Error:failed to open file $filename");
41 $file_handle = fopen($filename, $mode);
43 exit("Error:failed to open file $filename");
53 unlink($filename);
61 $filename = "$file_path/fscanf_variation52.tmp";
62 if(file_exists($filename)) {
63 unlink($filename);
H A Dpathinfo_basic.phpt82 [%u|b%"filename"]=>
97 [%u|b%"filename"]=>
112 [%u|b%"filename"]=>
127 [%u|b%"filename"]=>
142 [%u|b%"filename"]=>
157 [%u|b%"filename"]=>
172 [%u|b%"filename"]=>
187 [%u|b%"filename"]=>
202 [%u|b%"filename"]=>
217 [%u|b%"filename"]=>
[all …]
/PHP-5.6/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation4.phpt7 $filename = __FILE__ . '.tmp';
8 $fp = fopen('File://' . $filename, 'w+');
16 $dirname = dirname($filename);
18 $relative_filename = basename($filename);
25 unlink($filename);
/PHP-5.6/ext/gd/tests/
H A Dbug66590.phpt13 $filename = __DIR__ . '/bug66590.webp';
17 imagewebp($im, $filename);
18 $stream = fopen($filename, 'rb');
23 var_dump($length === filesize($filename));
H A Dtest_image_equals_file_palette.phpt16 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'test_image_equals_file_palette.png';
17 imagepng($im, $filename);
24 test_image_equals_file($filename, $im);
32 test_image_equals_file($filename, $im);
H A Dcreatefromwbmp2_extern.phpt10 $filename = dirname(__FILE__) . '/_tmp.wbmp';
11 $fp = fopen($filename,"wb");
13 exit("Failed to create <$filename>");
41 $im = imagecreatefromwbmp($filename);
42 unlink($filename);
H A Dcreatefromwbmp2.phpt10 $filename = dirname(__FILE__) . '/_tmp.wbmp';
11 $fp = fopen($filename,"wb");
13 exit("Failed to create <$filename>");
41 $im = imagecreatefromwbmp($filename);
42 unlink($filename);
H A Dimageloadfont_invalid.phpt9 $filename = dirname(__FILE__) . '/font.gdf';
11 $fp = fopen($filename, 'wb');
16 $font = imageloadfont($filename);
19 unlink($filename);
H A Dwebp_basic.phpt16 $filename = __DIR__ . '/webp_basic.webp';
27 imagewebp($im1, $filename);
29 $im2 = imagecreatefromwebp($filename);
30 imagewebp($im2, $filename);
/PHP-5.6/ext/zlib/tests/
H A Dzlib_wrapper_fflush_basic.phpt12 $filename = "zlib_wrapper_fflush_basic.txt.gz";
13 $h = gzopen($filename, 'w');
22 $h = gzopen($filename, 'r');
26 unlink($filename);
/PHP-5.6/ext/sockets/tests/
H A Dsocket_create_listen-nobind.phpt8 $filename = dirname(__FILE__) . '/006_root_check.tmp';
9 $fp = fopen($filename, 'w');
11 if (fileowner($filename) == 0) {
12 unlink ($filename);
/PHP-5.6/sapi/cgi/tests/
H A D004.phpt15 $filename = dirname(__FILE__).'/004.test.php';
27 file_put_contents($filename, $code);
29 var_dump(`$php -n -f "$filename" 2>/dev/null`);
32 @unlink($filename);
/PHP-5.6/ext/hash/tests/
H A Dhash_file_error.phpt9 /* Prototype : string hash_file(string algo, string filename[, bool raw_output = false])
18 $filename = 'hash_file_error_example.txt';
19 file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
24 var_dump( hash_file( 'foobar', $filename ) );
34 var_dump( hash_file( 'md5', $filename, false, $extra_arg ) );
41 $filename = 'hash_file_error_example.txt';
42 unlink( $filename );
/PHP-5.6/ext/standard/tests/strings/
H A Dbug65947.phpt7 $filename = 'test.toto';
11 $b2 = basename($filename);
12 if ($filename != $b2)

Completed in 35 milliseconds

12345678910>>...44