[wp-hackers] WP's Physical Path

Peter Westwood peter.westwood at ftwr.co.uk
Thu Oct 4 15:34:32 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Keith Murray wrote:
> 
> Hi,
> 
> I apologize if this is a question with a well-documented answer, but
> I've been looking for a while and haven't come up with one.  I have a
> plugin that needs to reference a physical path on the host.  Is there a
> WP variable that stores the physical path?  Or is there a method of
> retrieving the physical path of your WP root in some other fashion?
> 
> What I need to get is a path like:
> /home/users/my_account/somedomain.com/wordpress
> 
> Ideally this could be done with little or no knowledge of this
> information by the blogger using the WP plugin.
> 

ABSPATH is your friend I think

westi
- --
Peter Westwood
http://blog.ftwr.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHBQgIVPRdzag0AcURAnyKAJ4pwxFYrWjASKqBIwQ6wPSceHW2EgCfbDRY
Ol4ytZXX6hMnXdjgXwEvy+s=
=sTtf
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list