How to get filepath and url in Magento
base Mage::getBaseDir()
base Mage::getBaseDir(‘base’) magento/
app Mage::getBaseDir(‘app’) magento/app/
code Mage::getBaseDir(‘code’) magento/app/code
design Mage::getBaseDir(‘design’) magento/app/design/
etc Mage::getBaseDir(‘etc’) magento/app/etc
lib Mage::getBaseDir(‘lib’) magento/lib
locale Mage::getBaseDir(‘locale’) magento/app/locale
media Mage::getBaseDir(‘media’) magento/media/
skin Mage::getBaseDir(‘skin’) magento/skin/
var Mage::getBaseDir(‘var’) magento/var/
tmp Mage::getBaseDir(‘tmp’) magento/var/tmp
cache Mage::getBaseDir(‘cache’) magento/var/cache
log Mage::getBaseDir(‘log’) magento/var/log
session Mage::getBaseDir(‘session’) magento/var/session
upload Mage::getBaseDir(‘upload’) magento/media/upload
export Mage::getBaseDir(‘export’) magento/var/export