title: php doesn't scan relative path for files
body: <p>Here is my current code (that i am very proud of for my first attempt at php)</p>
  
  <pre><code>&lt;?php
  $files = glob("/jobops/*.txt");
  $indexcount = count($files);
  sort($files);
  print("&lt;br&gt;"+$indexcount+"&lt;br&gt;");
  foreach ($files as &amp;$file)
  {
      print("&lt;a href=\"$file\"&gt;$file&lt;/a&gt;&lt;br&gt;");
  }
  ?&gt;
  </code></pre>
  
  <p>the problem is glob again works fine in the root directory (where this script is located) but when i point it to a specific folder it returns 0 files found.</p>
  
  <p>I've included a screen grab from my ftp client showing the directory structure (below)</p>
  
  <p>so I'm confused what I'm doing wrong on the glob</p>
  
  <p><a href="http://www.markonsolutions.com/test.php" rel="nofollow noreferrer">www.markonsolutions.com/test.php</a> is where the script is and if you click it will return 0 files found</p>
  
  <p><a href="https://i.stack.imgur.com/DXKwu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DXKwu.png" alt="alt text"></a>
  </p>