Judul : php ftp connectivity
link : php ftp connectivity
php ftp connectivity
PHP ftp_connect() Function:
Definition and Usage :
The ftp_connect() function opens an FTP connection to the specified host.
When the connection is open, you can run FTP functions against the server.
Syntax :
ftp_connect(host,port,timeout);
Example code:
// connect and login to FTP server
$ftp_server = "ftp.example.com";
$ftp_username="ftpusername";
$ftp_userpass="ftppassword";
$ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server");
$login = ftp_login($ftp_conn, $ftp_username, $ftp_userpass);
if($login)
{
echo "connected to server";
}
else
{
echo "not connected to server";
}
// then do something...
// close connection
ftp_close($ftp_conn);
?>
Demikianlah Artikel php ftp connectivity
Sekianlah artikel php ftp connectivity kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.
Anda sekarang membaca artikel php ftp connectivity dengan alamat link https://othereffect.blogspot.com/2016/12/php-ftp-connectivity.html
0 Response to "php ftp connectivity"
Post a Comment