Home
last modified time | relevance | path

Searched refs:ftp (Results 26 – 50 of 103) sorted by relevance

12345

/PHP-7.4/ext/standard/tests/streams/
H A Dopendir-002.phpt2 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 Dbug73457.phpt5 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 Dbug77680.phpt2 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 Dftp_site_basic.phpt11 $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 Dbug27809.phpt12 $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 Dbug7216.phpt12 $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 Dftp_pasv.phpt11 $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 Dftp_rawlist_basic1.phpt11 $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 Dbug39583-2.phpt11 $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 Dbug39583.phpt12 $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 Dftp_mlsd_missing_directory.phpt13 $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 Dftp_nb_put.phpt11 $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 Dftp_rmdir_basic.phpt14 $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 Dbug7216-2.phpt11 $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 Dftp_alloc_basic1.phpt14 $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 Dftp_nb_fget_basic1.phpt14 $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 Dftp_fget_basic1.phpt14 $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 Dftp_fput.phpt11 $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 Dftp_nb_fput.phpt11 $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 Dftp_chmod_basic.phpt14 $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 Dftp_exec_basic.phpt14 $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 Dftp_rawlist_basic2.phpt14 $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 Dftp_alloc_basic2.phpt14 $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 Dftp_delete.phpt13 $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 Dftp_fget_basic.phpt13 $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);

Completed in 30 milliseconds

12345