How can one effectively add an external HTML page link in a PHP script to display custom text?

To add an external HTML page link in a PHP script to display custom text, you can use the `file_get_contents()` function to retrieve the content of the HTML page and then echo it out with the custom text. Make sure to properly handle any errors that may occur during the retrieval process.

<?php
$html_content = file_get_contents('external_page.html');

if($html_content !== false){
    // Custom text to display before the HTML content
    echo "Custom Text: ";
    
    // Display the HTML content
    echo $html_content;
} else {
    echo "Error retrieving external HTML page.";
}
?>