how to set php variable value from external site
I am a PHP novice and would appreciate some advice on how to achieve the following.
At hypothetical location "no_name_site.com/.count", the file .count contains a numeric string only, for example, 123. The content constantly increments. I want to display the current count at my own web page.
Something like this:
<html>
<?php
$foreign_count = {the current value stored at "no_name_site.com/.count"}
?>
<body>
<center>
<h1>Foreign Site Count</h1>
<p>count = <?php echo $foreign_count; ?></p>
</center>
</body>
</html>
Is this possible in PHP ?
|