/ Published in: PHP
Simply save the above code in a PHP file in the base Magento directory of your store, and visit the URL in your web browser, simples!
URL: http://www.sonassi.com/knowledge-base/quick-script-to-export-categories-with-ids/
URL: http://www.sonassi.com/knowledge-base/quick-script-to-export-categories-with-ids/