Skip to content

Instantly share code, notes, and snippets.

@dave1010
Created November 5, 2013 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dave1010/7319741 to your computer and use it in GitHub Desktop.
Save dave1010/7319741 to your computer and use it in GitHub Desktop.
De-resolve symlinks from PHP's __FILE__
@Ketrel
Copy link

Ketrel commented Feb 19, 2016

This doesn't work when the directory is the symlink rather than the php file directly.
In this case, it still resolves the symlink.

@beppe9000
Copy link

5 years later... is there a better solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment