Website as an installer

hello friends i need to make my website in an installtion way like forum and all how can i make if you know please give me the step by step process that i need to go to find the destination of this

can we execute databse automatically though ph program with out entering any dbname ab connection …like it automatically fetch evey thing and do can we make like that.

No, at the very least the user would have to supply his/her database details before any script could connect to the database server.

no other way like we cant use fopen and all for that

Can you not see the security implications if a PHP script could just grab the MySQL login details from somewhere on the server?