<?php
// bir FTP bağlantısı tanımlayıp, bağlanalım
$ftp_server = "ftp.domain.com";
$ftp_conn = ftp_connect($ftp_server) or die("$ftp_server bağlanamadı");
$login = ftp_login($ftp_conn, $ftp_username, $ftp_userpass);
$file = "php/dosya.txt";
// silmeyi deniyoruz
if (ftp_delete($ftp_conn, $file))
{
echo "$file silindi.";
}
else
{
echo "$file silinemedi.";
}
// bağlantıyı kapatmak lazım...
ftp_close($ftp_conn);
?>
8 Eylül 2010 Çarşamba
PHP: FTP bağlantısı ile sunucudan dosya sil
Kaydol:
Kayıt Yorumları (Atom)
İnsdroid
Sabahtan beri çatada çutada çatada çutada… Bitmedi yine de… Neyse, yolumuz uzun, toparlıyorum çantamı, adaptörü falan tıkıştırıyorum bir şe...
-
Metasploitable is a kind of vulnerable Linux virtual machine image for penetration testing. It is Debian 32bit based operation system, and r...
-
Why do we need to change status of a request? Let's imagine, you have a workbench request and you already relased linked task in it....
-
Adding mirros: Open the terminal as sudo user and; apt update apt upgrade Mirrors will be added automaticly after above operat...
Hiç yorum yok:
Yorum Gönder