I have a very basic PHP file on a separate server (server 1) that literally contains the following:
<?php $version = "1.0.0"; ?>
In my PHP file on server 2, what I would like to do it simply echo this variable. I have tried using get_file_contents() but I think this is for files on the same server. So I also tried using something similar but also using fopen() and this resulted in Resource id #93.
Looking around on Google, I have found so many different examples, but I basically want to have a short and simple one. Can anyone point me in the right direction?