/PHP-5.5/ext/standard/tests/file/ |
H A D | fputcsv.phpt | 32 $fp = fopen($file, "w"); 34 fputcsv($fp, explode(',', $v)); 36 fclose($fp); 45 $fp = fopen($file, "r"); 47 while($l=fgetcsv($fp)) 51 fclose($fp);
|
H A D | bug38450_2.phpt | 89 $fp = fopen("var://myvar", "r+"); 91 fwrite($fp, "line1\n"); 92 fwrite($fp, "line2\n"); 93 fwrite($fp, "line3\n"); 95 rewind($fp); 96 while (!feof($fp)) { 97 echo fgets($fp); 99 fclose($fp);
|
H A D | bug40374.phpt | 8 $fp = fopen($file, "wt"); 9 fwrite($fp, "test"); 10 fclose($fp);
|
H A D | unlink_basic.phpt | 13 $fp = fopen($filename, "w"); // create file 14 fwrite($fp, "Hello World"); 15 fclose($fp); 26 $fp = fopen($filename, "w"); // create file 27 fclose($fp);
|
H A D | bug22382.phpt | 5 $fp = fopen(dirname(__FILE__)."/test2.csv", "r"); 6 while(($line = fgetcsv($fp, 1024))) { 9 fclose($fp);
|
H A D | fputcsv_variation15.phpt | 34 $fp = fopen($file, "w"); 36 fputcsv($fp, explode(',', $v), ',', '"', '/'); 38 fclose($fp); 47 $fp = fopen($file, "r"); 49 while($l=fgetcsv($fp, 0, ',', '"', '/')) 53 fclose($fp);
|
H A D | glob_basic.phpt | 20 $fp = fopen("$dirname/wonder12345", "w"); 21 fclose($fp); 22 $fp = fopen("$dirname/wonder.txt", "w"); 23 fclose($fp); 24 $fp = fopen("$dirname/file.text", "w"); 25 fclose($fp);
|
H A D | userstreams.phpt | 181 if (!$fp || !is_resource($fp)) { 241 rewind($fp); 251 $upb = ftell($fp); 253 $upa = ftell($fp); 289 if (ftell($fp) != ftell($tf)) { 294 while(!feof($fp)) { 295 $uline = fgets($fp, 1024); 311 rewind($fp); 312 var_dump(ftell($fp)); 313 $data = fgets($fp); [all …]
|
H A D | bug53848.phpt | 8 $fp = fopen($file, "r"); 9 while ($l = fgetcsv($fp)) var_dump($l); 10 fclose($fp);
|
H A D | touch_variation2.phpt | 10 $fp=fopen($filename,"w"); 11 fwrite ($fp,"mydata"); 12 fclose($fp);
|
/PHP-5.5/ext/curl/tests/ |
H A D | bug48203.phpt | 8 $fp = fopen(dirname(__FILE__) . '/bug48203.tmp', 'w'); 13 curl_setopt($ch, CURLOPT_STDERR, $fp); 16 fclose($fp); // <-- premature close of $fp caused a crash!
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | vfprintf_basic1.phpt | 24 if (!($fp = fopen($data_file, 'wt'))) 27 $result = vfprintf($fp, $format1, $arg1); 29 $result = vfprintf($fp, $format2, $arg2); 31 $result = vfprintf($fp, $format3, $arg3); 34 fclose($fp);
|
/PHP-5.5/ext/phar/tests/cache_list/files/ |
H A D | write24.phar | 4 $fp = fopen("phar://" . __FILE__ . "/newname", "w"); 5 fwrite($fp, b"hi"); 6 fclose($fp);
|
H A D | write24.phar.inc | 10 $fp = fopen("phar://" . __FILE__ . "/newname", "w"); 11 fwrite($fp, b"hi"); 12 fclose($fp);
|
/PHP-5.5/ext/standard/tests/general_functions/ |
H A D | 004.phpt | 6 $fp=fopen("004.data","r"); 7 while($a=fgetcsv($fp,100,"\t")) { 10 fclose($fp);
|
/PHP-5.5/ext/ftp/tests/ |
H A D | ftp_nb_get_large.phpt | 24 $fp = fopen($local_file, 'r'); 25 fseek($fp, 5368709119); 26 var_dump(fread($fp, 1)); 28 fclose($fp);
|
/PHP-5.5/ext/standard/tests/dir/ |
H A D | closedir_variation3.phpt | 18 var_dump($fp = fopen(__FILE__, 'r')); 21 var_dump(closedir($fp)); 24 var_dump($fp); 26 if(is_resource($fp)) { 27 fclose($fp);
|
/PHP-5.5/sapi/cli/tests/ |
H A D | bug61977.phpt | 22 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 23 if (!$fp) die('Connect failed'); 31 if (fwrite($fp, $header)) { 32 while (!feof($fp)) { 33 $text = fgets($fp); 39 fclose($fp);
|
/PHP-5.5/ext/spl/tests/ |
H A D | SplFileObject_fgetcsv_basic.phpt | 5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
H A D | SplFileObject_fgetcsv_delimiter_basic.phpt | 5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
H A D | SplFileObject_fgetcsv_enclosure_basic.phpt | 5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
H A D | SplFileObject_fgetcsv_escape_basic.phpt | 5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+'); 6 fwrite($fp, '"aaa","b""bb","ccc"'); 7 fclose($fp);
|
H A D | SplFileObject_fgetcsv_escape_default.phpt | 5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+'); 6 fwrite($fp, '"aa\"","bb","\"c"'); 7 fclose($fp);
|
/PHP-5.5/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_file_basic.phpt | 6 $fp = fopen(__FILE__, "r"); 8 var_dump(stream_get_meta_data($fp)); 10 fclose($fp);
|
/PHP-5.5/ext/spl/internal/ |
H A D | splfileobject.inc | 23 private $fp; 45 if (!$this->fp) 57 return eof($this->fp); 67 $buf = fgets($this->fp, $this->max_len); 129 return fflush($this->fp); 137 return ftell($this->fp); 158 $c = fgetc($this->fp); 169 return fpassthru($this->fp); 196 return fwrite($this->fp, $length); 204 return fstat($this->fp); [all …]
|