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.