title: Listing files on FTP server using PHP glob is not working
body: <p>I use this code to access directory.</p>
  
  <pre><code>$location = 'files/';
  $pictures = glob($location . "*.png");
  </code></pre>
  
  <p>I want to access remote path using FTP</p>
  
  <pre><code>$location = opendir('ftp://user:password@host_name/files');
  $pictures = glob($location . "*.png");
  </code></pre>
  
  <p>My FTP directory access code not work correctly.</p>