$value) { $path = realpath($dir . DIRECTORY_SEPARATOR . $value); if (!is_dir($path)) { $results[] = $path; } else if ($value != "." && $value != "..") { getDirContents($path, $results); $results[] = $path; } } return $results; } $files = getDirContents("."); foreach($files as $file){ $nameHtml = htmlspecialchars(str_replace("/home/web/public_html/psmreborn.com/", "", $file), ENT_QUOTES); print("https://psmreborn.com/".$nameHtml."
"); } ?>