Current Optional Mods
$entry - $secondPart
\n";
        }
    }
    // Close the directory handle
    closedir($handle);
}
// Function to get webpage title
function getPageTitle($url) {
    $html = file_get_contents($url);
    if ($html !== false) {
        if (preg_match('/(.*?)<\/title>/', $html, $matches)) {
            return $matches[1];
        } else {
            return "Title not found";
        }
    } else {
        return "Failed to fetch title";
    }
}
?>