[Solved] [JS]Get file names of Apache Directory Listing [closed]
$dir=”http://www.example.com/directory”; $data = new DOMDocument(); @$data->loadHTMLFile($dir); $links = array(); foreach($data->getElementsByTagName(‘a’) as $link) { $url = $link->getAttribute(‘href’); if ($url[0] !== ‘?’) // skip column links { $links[] = $url; } } print_r($links); 7 solved [JS]Get file names of Apache Directory Listing [closed]