22 lines
463 B
PHP
22 lines
463 B
PHP
--TEST--
|
|
Testing ftp_nb_put basic functionality
|
|
--CREDITS--
|
|
Gabriel Caruso (carusogabriel34@gmail.com)
|
|
--SKIPIF--
|
|
<?php require 'skipif.inc'; ?>
|
|
--FILE--
|
|
<?php
|
|
require 'server.inc';
|
|
|
|
$ftp = ftp_connect('127.0.0.1', $port);
|
|
ftp_login($ftp, 'user', 'pass');
|
|
$ftp or die("Couldn't connect to the server");
|
|
|
|
$destination_file = basename(__FILE__);
|
|
$source_file = __FILE__;
|
|
|
|
var_dump(ftp_nb_put($ftp, $destination_file, $source_file, FTP_ASCII));
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|