Home
last modified time | relevance | path

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

12345678910>>...43

/PHP-5.5/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.5/ext/standard/tests/file/
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 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 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 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 …]
H A Dfgetss.phpt6 $filename = dirname(__FILE__)."/fgetss.html";
19 file_put_contents($filename, $str);
20 $fp = fopen($filename, "r");
26 file_put_contents($filename, $str);
27 $fp = fopen($filename, "r");
37 @unlink($filename);
H A Dfilesize_variation3.phpt11 Prototype : int filesize ( string $filename );
19 $filename = $file_path."/filesize_variation3.tmp";
20 $file_handle = fopen($filename, "w");
28 for($size = filesize($filename); $size>=-1200; $size-=1200) {
29 $file_handle = fopen($filename, "r+");
32 var_dump( filesize($filename) );
H A Dfilesize_variation3-win32.phpt11 Prototype : int filesize ( string $filename );
19 $filename = $file_path."/filesize_variation3.tmp";
20 $file_handle = fopen($filename, "w");
28 for($size = filesize($filename); $size>=-1200; $size-=1200) {
29 $file_handle = fopen($filename, "r+");
32 var_dump( filesize($filename) );
H A Dsymlink_link_linkinfo_is_link_variation4.phpt14 Prototype: bool is_link ( string $filename );
33 $filename = "$file_path/symlink__link_linkinfo_is_link_variation4.tmp";
35 $file = fopen($filename, "w");
43 var_dump( link($filename, $linkname) );
48 if( filesize($filename) == filesize($linkname) )
60 $data_from_file = file_get_contents($filename);
64 if( filesize($filename) == filesize($linkname) )
71 $file = fopen($filename, "w");
80 var_dump( filesize($filename) );
82 if( filesize($filename) == filesize($linkname) )
[all …]
/PHP-5.5/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.5/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.5/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.5/ext/gd/tests/
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);
/PHP-5.5/ext/pdo_pgsql/tests/
H A Dcopy_to.phpt50 $filename="test_pgsqlCopyToFile.csv";
51 var_dump($db->pgsqlCopyToFile('test',$filename));
52 echo file_get_contents($filename);
54 var_dump($db->pgsqlCopyToFile('test',$filename,";","NULL"));
55 echo file_get_contents($filename);
57 var_dump($db->pgsqlCopyToFile('test',$filename,";","NULL",'a,c'));
58 echo file_get_contents($filename);
61 var_dump($db->pgsqlCopyToFile('test_error',$filename));
69 if(isset($filename)) {
70 @unlink($filename);
/PHP-5.5/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_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_example.txt';
42 unlink( $filename );
/PHP-5.5/ext/standard/tests/strings/
H A Dbug65947.phpt7 $filename = 'test.toto';
11 $b2 = basename($filename);
12 if ($filename != $b2)

Completed in 58 milliseconds

12345678910>>...43