Unable to reach dir with script after PHP upgrade
<p>I was asked to fix a site that was fine just days ago and now is not able to include files due to the host's upgrade of the PHP to v.5.3</p>

<p>There's a script that reads directory and builds a list of PDFs in it. FOr some reason the script stopped working and I get the following error messages:</p>

<blockquote>
  <p>failed to open dir: No such file or directory...</p>
</blockquote>

<p>However I see the directory on the server and if I point to a file directly it opens. </p>

<p>Earliuer I had an issue when I was trying to include files and was getting somewhat similar messages. It seems the problem is caused by a <a href="http://php.net/manual/en/security.globals.php" rel="nofollow">deprecated php.ini</a> setting: register_globals = on. in PHP 5.3</p>

<p>What are the possible solutions?</p>
