title: Foxpro Database Connection in PHP via UNC Path
body: <p>Good day. I really need help.</p>
  
  <p>I need to access a foxpro table in PHP. </p>
  
  <p>When I access it using a local path as my data source, it works smoothly. 
  But when I try to access a database file on another computer, it always prompt as invalid path, provided that I have access on the computer and the files are publicly shared. Here is my code:</p>
  
  <pre><code>$conn = new COM("ADODB.Connection");
  $server='172.0.0.8\server';
  $conn-&gt;Open_basedir('Provider=VFPOLEDB.1;Data Source=//172.0.0.8/server/sysprog/system/tempstk.dbf;Collating Sequence=MACHINE');  
  // SQL statement to build recordset.
  $rs = $conn-&gt;Execute("SELECT * FROM tempstk");
  
  echo "&lt;p&gt;List of couriers:&lt;/p&gt;&lt;hr&gt;";
  // Display all the values in the records set
  while (!$rs-&gt;EOF) { 
      $fv = $rs-&gt;Fields("Prodcode");
      echo $fv-&gt;value."&lt;br&gt;\n";
      $rs-&gt;MoveNext();
  } 
  $rs-&gt;Close(); 
  </code></pre>
  
  <p>thanks!</p>