hello friends,
If anyone of you facing problems to fetch the Magento URL paths of skin, media, Js or simple base URL of Magento while customization/programming, then following lines should be helpful for you:
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);
//http://magento.demo/js/
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
//http://magento.demo/index.php/
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
//http://magento.demo/media/
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
//http://magento.demo/skin/
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
//http://magento.demo/
Enjoy!

Thanks, it was useful, I was trying to get the magento url without index.php.
Great this is helpful to many developers
thanks it is very helpfull for me
Very useful Blogs. As i am new in Magento.
Thanks for share.
Nice post…. its very helpful..
thanks
tnx for this paths, very helpful info!
it’s great!