Tüm dosyaları aç

Örneğin "F" klasörüne sahipsiniz ve içinde file1, file2, ... gibi dosyalar var.

<a href="#" onclick="open()">Open All</a>
function open() {
<?php
	    
$files = scandir('your-path\F');

foreach($files as $file) {
	if (strpos($file,'file') !== false) {
		echo 'window.open("your-url/'.$file.'")';
	}
}
?>
}

Gönderi içerir "Javascript" Görüntüleme 5170            Yayımlandı 28/02/2018

All Comments (0)
No Comments