PHP script to extract content from a live link based tree, and re create tree in HDD