/PHP-7.4/ext/standard/tests/streams/ |
H A D | opendir-002.phpt | 2 opendir() with 'ftp://' stream. 5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available."); 11 require __DIR__ . "/../../../ftp/tests/server.inc"; 13 $path="ftp://localhost:" . $port."/";
|
H A D | bug73457.phpt | 5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available."); 12 require __DIR__ . "/../../../ftp/tests/server.inc"; 14 $path="ftp://127.0.0.1:" . $port."/bug73457"; 21 Warning: file_get_contents(ftp://127.0.0.1:%d/bug73457): failed to open stream: Failed to set up da…
|
H A D | bug77680.phpt | 2 Recursive mkdir() on ftp should create missing directories. 5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available."); 12 require __DIR__ . "/../../../ftp/tests/server.inc"; 14 $path = "ftp://localhost:" . $port."/one/two/three/";
|
/PHP-7.4/ext/ftp/tests/ |
H A D | ftp_site_basic.phpt | 11 $ftp = ftp_connect('127.0.0.1', $port); 12 $ftp or die("Couldn't connect to the server"); 14 ftp_login($ftp, 'user', 'pass') or die("Couldn't login into the server"); 16 var_dump(ftp_site($ftp, 'CHMOD 0600 file')); 17 var_dump(ftp_site($ftp, 'foo bar baz'));
|
H A D | bug27809.phpt | 12 $ftp = ftp_connect('127.0.0.1', $port); 13 if (!$ftp) die("Couldn't connect to the server"); 15 var_dump(ftp_login($ftp, 'anonymous', 'IEUser@')); 16 var_dump(ftp_systype($ftp));
|
H A D | bug7216.phpt | 12 $ftp = ftp_connect('127.0.0.1', $port); 13 if (!$ftp) die("Couldn't connect to the server"); 15 var_dump(ftp_login($ftp, 'anonymous', 'IEUser@')); 16 var_dump(ftp_mkdir($ftp, 'CVS'));
|
H A D | ftp_pasv.phpt | 11 $ftp = ftp_connect('127.0.0.1', $port); 12 ftp_login($ftp, 'user', 'pass'); 13 $ftp or die("Couldn't connect to the server"); 15 var_dump(ftp_pasv($ftp, false));
|
H A D | ftp_rawlist_basic1.phpt | 11 $ftp = ftp_connect('127.0.0.1', $port); 12 ftp_login($ftp, 'user', 'pass'); 13 $ftp or die("Couldn't connect to the server"); 15 var_dump(is_array(ftp_rawlist($ftp, 'www/')));
|
H A D | bug39583-2.phpt | 11 $ftp = ftp_connect('127.0.0.1', $port); 12 if (!$ftp) die("Couldn't connect to the server"); 14 var_dump(ftp_login($ftp, 'user', 'pass')); 20 $upload = ftp_put($ftp, $destination_file, $source_file, FTP_BINARY); 30 ftp_close($ftp);
|
H A D | bug39583.phpt | 12 $ftp = ftp_connect('127.0.0.1', $port); 13 if (!$ftp) die("Couldn't connect to the server"); 15 var_dump(ftp_login($ftp, 'user', 'pass')); 21 $upload = ftp_put($ftp, $destination_file, $source_file, FTP_ASCII); 31 ftp_close($ftp);
|
H A D | ftp_mlsd_missing_directory.phpt | 13 $ftp = ftp_connect('127.0.0.1', $port); 14 ftp_login($ftp, 'user', 'pass'); 15 if (!$ftp) die("Couldn't connect to the server"); 17 var_dump(ftp_mlsd($ftp, 'no_exists/'));
|
H A D | ftp_nb_put.phpt | 11 $ftp = ftp_connect('127.0.0.1', $port); 12 ftp_login($ftp, 'user', 'pass'); 13 $ftp or die("Couldn't connect to the server"); 18 var_dump(ftp_nb_put($ftp, $destination_file, $source_file, FTP_ASCII));
|
H A D | ftp_rmdir_basic.phpt | 14 $ftp = ftp_connect('127.0.0.1', $port); 15 if (!$ftp) die("Couldn't connect to the server"); 16 ftp_login($ftp, 'user', 'pass'); 18 var_dump(ftp_rmdir($ftp, 'www/'));
|
H A D | bug7216-2.phpt | 11 $ftp = ftp_connect('127.0.0.1', $port); 12 if (!$ftp) die("Couldn't connect to the server"); 14 var_dump(ftp_login($ftp, 'anonymous', 'IEUser@')); 16 var_dump(ftp_mkdir($ftp, 'CVS'));
|
H A D | ftp_alloc_basic1.phpt | 14 $ftp = ftp_connect('127.0.0.1', $port); 15 if (!$ftp) die("Couldn't connect to the server"); 16 ftp_login($ftp, 'user', 'pass'); 18 var_dump(ftp_alloc($ftp, 1024));
|
H A D | ftp_nb_fget_basic1.phpt | 14 $ftp = ftp_connect('127.0.0.1', $port); 15 ftp_login($ftp, 'user', 'pass'); 16 if (!$ftp) die("Couldn't connect to the server"); 17 ftp_set_option($ftp, FTP_AUTOSEEK, false); 22 var_dump(ftp_nb_fget($ftp, $handle, 'fget.txt', FTP_ASCII, FTP_AUTORESUME));
|
H A D | ftp_fget_basic1.phpt | 14 $ftp = ftp_connect('127.0.0.1', $port); 15 ftp_login($ftp, 'user', 'pass'); 16 if (!$ftp) die("Couldn't connect to the server"); 17 ftp_set_option($ftp, FTP_AUTOSEEK, false); 22 var_dump(ftp_fget($ftp, $handle, 'fget.txt', FTP_ASCII, FTP_AUTORESUME));
|
H A D | ftp_fput.phpt | 11 $ftp = ftp_connect('127.0.0.1', $port); 12 ftp_login($ftp, 'user', 'pass'); 13 $ftp or die("Couldn't connect to the server"); 18 var_dump(ftp_fput($ftp, $destination_file, $source_file, FTP_ASCII));
|
H A D | ftp_nb_fput.phpt | 11 $ftp = ftp_connect('127.0.0.1', $port); 12 ftp_login($ftp, 'user', 'pass'); 13 $ftp or die("Couldn't connect to the server"); 18 var_dump(ftp_nb_fput($ftp, $destination_file, $source_file, FTP_ASCII));
|
H A D | ftp_chmod_basic.phpt | 14 $ftp = ftp_connect('127.0.0.1', $port); 15 if (!$ftp) die("Couldn't connect to the server"); 16 ftp_login($ftp, 'user', 'pass'); 18 var_dump(ftp_chmod($ftp, 0644, 'test.txt'));
|
H A D | ftp_exec_basic.phpt | 14 $ftp = ftp_connect('127.0.0.1', $port); 15 ftp_login($ftp, 'user', 'pass'); 16 if (!$ftp) die("Couldn't connect to the server"); 18 var_dump(ftp_exec($ftp, 'ls -al'));
|
H A D | ftp_rawlist_basic2.phpt | 14 $ftp = ftp_connect('127.0.0.1', $port); 15 ftp_login($ftp, 'user', 'pass'); 16 if (!$ftp) die("Couldn't connect to the server"); 18 var_dump(ftp_rawlist($ftp, 'no_exists/'));
|
H A D | ftp_alloc_basic2.phpt | 14 $ftp = ftp_connect('127.0.0.1', $port); 15 if (!$ftp) die("Couldn't connect to the server"); 16 ftp_login($ftp, 'user', 'pass'); 18 var_dump(ftp_alloc($ftp, 1024, $result));
|
H A D | ftp_delete.phpt | 13 $ftp = ftp_connect('127.0.0.1', $port); 14 ftp_login($ftp, 'user', 'pass'); 15 $ftp or die("Couldn't connect to the server"); 18 var_dump(ftp_delete($ftp, 'file1')); 21 var_dump(ftp_delete($ftp, 'false-file.boo')); 23 ftp_close($ftp);
|
H A D | ftp_fget_basic.phpt | 13 $ftp = ftp_connect('127.0.0.1', $port); 14 if (!$ftp) die("Couldn't connect to the server"); 16 var_dump(ftp_login($ftp, 'user', 'pass')); 20 var_dump(ftp_fget($ftp, $fp ,'a story.txt', FTP_ASCII)); 26 var_dump(ftp_fget($ftp, $fp, 'binary data.bin', FTP_BINARY)); 31 ftp_fget($ftp, $fp ,'a warning.txt', FTP_ASCII);
|