title: PHP echo variable from external PHP file on different server
body: <p>I have a very basic PHP file on a separate server (server 1) that literally contains the following:</p>
  
  <pre><code>&lt;?php $version = "1.0.0"; ?&gt;
  </code></pre>
  
  <p>In my PHP file on server 2, what I would like to do it simply echo this variable. I have tried using <code>get_file_contents()</code> but I think this is for files on the same server. So I also tried using something similar but also using <code>fopen()</code> and this resulted in <strong>Resource id #93</strong>.</p>
  
  <p>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?</p>