Last active
August 29, 2015 14:05
-
-
Save Kcko/6fa43fe75412aa8e489c to your computer and use it in GitHub Desktop.
FTP připojení a upload via PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$connection = ftp_connect($server); | |
$login = ftp_login($connection, $ftp_user_name, $ftp_user_pass); | |
if (!$connection || !$login) { die('Connection attempt failed!'); } | |
$upload = ftp_put($connection, $dest, $source, $mode); | |
if (!$upload) { echo 'FTP upload failed!'; } | |
ftp_close($connection); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment