Kód: Vybrať všetko
$dir = opendir ("/home/ftp/ftproot/files");
while (false !== ($file = readdir($dir))) {
if (strpos($file, '.txt',1)) {
$text= $file;
}
}Kód: Vybrať všetko
$dir = opendir ("/home/ftp/ftproot/files");
while (false !== ($file = readdir($dir))) {
if (strpos($file, '.txt',1)) {
$text= $file;
}
}