Nice idea, but you should really take into consideration security matters: If you save all your database information in the php file, anyone can download that file and gain access to your entire webshop database. A better way to implement the catalog anywhere feature would be to work with the includes/configure.php.

B. regards,
compuskill

More...