php - getting/display text on external url with echo variable -
im searching on google on how text of external url via php see code displays text on website without adding echo , variable. how display text on url php function <?php echo $text; ?> . lot!
you can use file_get_content() method retrieve content of url.
<?php $text = file_get_contents('http://www.example.com/file.php'); echo $text; ?>
Comments
Post a Comment