[wp-hackers] WP's Physical Path

Keith Murray kdmurray at gmail.com
Thu Oct 4 15:37:41 GMT 2007


Thanks Peter, Austin & Benedict for the speedy responses.  Apparently I 
just needed to look a little harder...

K


Peter Westwood wrote:
> -----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-----
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>   



More information about the wp-hackers mailing list