title: PHP script to check on remote server, a file exists
body: <p>I am having roblems with locating a PHP script to allow me to obtain the contents of a txt file on a remote server, then output to a variable. Outputting something to a variable is not the hard part. It's the picking up and reading the contents of the file that's the hard part. Anyone have any ideas?</p>
  
  <p>I have trawled the forum and can only locate a method that works locally. Not ideal as the target is remote.</p>
  
  <p>The objective really is, how do I find out if a file exists on the remote server and output a status in html.</p>
  
  <p>Ideas?</p>