How To Get Path Of Magento Root Folder

How can I get path of Magento root folder, like /public_html/

You can use Magento function getBaseDir()

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments