<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Mar 14, 2007, at 10:08 AM, Khalid Baheyeldin wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><B>realpath()</B> expands all symbolic links and   resolves references to '/./', '/../' and extra '/' characters in   the input <I><TT>path</TT></I> and return the canonicalized   absolute pathname.  The resulting path will have no symbolic link,   '/./' or '/../' components.</BLOCKQUOTE><BR></DIV><DIV>The problem is, users are not keeping their modules in the Drupal directory. I need to give the script the path to the Drupal root directory, not the real path to itself. I would use a URL instead of a filesystem path, but I don't want to depend on users to configure PHP to allow this.</DIV></BODY></HTML>