If you are wondering about if the allow_url_fopen extension is enabled or not. Yes it is.
You can add this php code in a php file in you htdocs folder to check:
<?php
// URL to test
$url = "https://www.google.com";
// Check if allow_url_fopen is enabled
if (ini_get('allow_url_fopen')) {
// Try to fetch content from a URL
$content = @file_get_contents($url);
if ($content === FALSE) {
echo "allow_url_fopen is enabled, but failed to fetch the URL content.";
} else {
echo "allow_url_fopen is enabled and URL content fetched successfully.<br>";
echo "Content preview:<br>";
echo htmlspecialchars(substr($content, 0, 500)) . "..."; // Show first 500 characters
}
} else {
echo "allow_url_fopen is disabled. Please enable it in your php.ini.";
}
?>
Then you will see this result:
