Forum Moderators: coopster
edit...
There's something about typing out a message here that makes the next Google search find what I'm looking for. debug_backtrace() does exactly what I'm trying to do.
[edited by: Nutter at 2:32 am (utc) on April 24, 2008]
What I'm doing is coming up with a function that will tell a plugin the path to itself. That way the plugin can call pluginPath() and know where it is. Yes, I know the plugin author can use __FILE__ to get the path, but it seems easier to have a couple of functions that the plugin author can use rather than having them rely on __FILE__. That way I can do the messy part and leave the plugin with a nice clean function to use.