I am planning to make an installation (like phpbb and others) part for one of my php script.So can anyone plz tell me the method ???
No. Unless you tell us what this script needs to do. Create database tables? Create folders? Be WAY more specific.
Export the table in PhpMyAdmin and copy the query (CREATE TABLE [...]). Then put it in your script and run it using mysql_query().