title: How to read file from remote server without FTP, using php?
body: <p>First I want to read a file with path </p>
  
  <p>$file = readfile("\10.96.5.94\DIR\README.txt");</p>
  
  <p>It is giving error no such file directory exists.</p>
  
  <p>I have also tried fopen and file_get_contents functions.</p>
  
  <p>Which I am able to access from my php server.</p>
  
  <p>10.96.5.94 is just a file server, from which I want to read a file, and attach it in mail.</p>
  
  <p>Is it possible to directly attach file by reading it from server?</p>
  
  <p>Or I need to copy it on server and attach it?</p>