title: Google drive - How to download file to local directory using php
body: <p>I am using Google drive sdk. I am using following code</p>
  
  <pre><code>  $drive_service = new Google_Service_Drive($client);
    $results = $drive_service-&gt;files-&gt;listFiles();
    $items = $results-&gt;getItems();
      foreach($items as $listItem){
          $url[] = $listItem['selfLink'];
      }
      echo "&lt;pre&gt;"; print_r($url); exit;
     There url shows all links. 
  </code></pre>