[development] Getting absolute directory path
darrenoh at sidepotsinternational.com
Wed Mar 14 14:15:48 UTC 2007
On Mar 14, 2007, at 10:08 AM, Khalid Baheyeldin wrote:
> realpath() expands all symbolic links and resolves references to
> '/./', '/../' and extra '/' characters in the input path and
> return the canonicalized absolute pathname. The resulting path will
> have no symbolic link, '/./' or '/../' components.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development