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

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -