Home
last modified time | relevance | path

Searched refs:fp (Results 126 – 150 of 909) sorted by relevance

12345678910>>...37

/PHP-5.5/ext/standard/tests/file/
H A Dfputcsv.phpt32 $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 Dbug38450_2.phpt89 $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 Dbug40374.phpt8 $fp = fopen($file, "wt");
9 fwrite($fp, "test");
10 fclose($fp);
H A Dunlink_basic.phpt13 $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 Dbug22382.phpt5 $fp = fopen(dirname(__FILE__)."/test2.csv", "r");
6 while(($line = fgetcsv($fp, 1024))) {
9 fclose($fp);
H A Dfputcsv_variation15.phpt34 $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 Dglob_basic.phpt20 $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 Duserstreams.phpt181 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 Dbug53848.phpt8 $fp = fopen($file, "r");
9 while ($l = fgetcsv($fp)) var_dump($l);
10 fclose($fp);
H A Dtouch_variation2.phpt10 $fp=fopen($filename,"w");
11 fwrite ($fp,"mydata");
12 fclose($fp);
/PHP-5.5/ext/curl/tests/
H A Dbug48203.phpt8 $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 Dvfprintf_basic1.phpt24 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 Dwrite24.phar4 $fp = fopen("phar://" . __FILE__ . "/newname", "w");
5 fwrite($fp, b"hi");
6 fclose($fp);
H A Dwrite24.phar.inc10 $fp = fopen("phar://" . __FILE__ . "/newname", "w");
11 fwrite($fp, b"hi");
12 fclose($fp);
/PHP-5.5/ext/standard/tests/general_functions/
H A D004.phpt6 $fp=fopen("004.data","r");
7 while($a=fgetcsv($fp,100,"\t")) {
10 fclose($fp);
/PHP-5.5/ext/ftp/tests/
H A Dftp_nb_get_large.phpt24 $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 Dclosedir_variation3.phpt18 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 Dbug61977.phpt22 $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 DSplFileObject_fgetcsv_basic.phpt5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
6 fputcsv($fp, array(
12 fclose($fp);
H A DSplFileObject_fgetcsv_delimiter_basic.phpt5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
6 fputcsv($fp, array(
12 fclose($fp);
H A DSplFileObject_fgetcsv_enclosure_basic.phpt5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
6 fputcsv($fp, array(
12 fclose($fp);
H A DSplFileObject_fgetcsv_escape_basic.phpt5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
6 fwrite($fp, '"aaa","b""bb","ccc"');
7 fclose($fp);
H A DSplFileObject_fgetcsv_escape_default.phpt5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
6 fwrite($fp, '"aa\"","bb","\"c"');
7 fclose($fp);
/PHP-5.5/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_basic.phpt6 $fp = fopen(__FILE__, "r");
8 var_dump(stream_get_meta_data($fp));
10 fclose($fp);
/PHP-5.5/ext/spl/internal/
H A Dsplfileobject.inc23 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 …]

Completed in 36 milliseconds

12345678910>>...37