me and my friends 5 of us are going to build a web for fun. and we are going to use a website github.com to do this task.
righ now
i have 1 directory folder where i put all my php files.
my friend have 1 directory folder where i put all my php files.
my other friend have1 directory folder where i put all my php files.
my other friend have 1 directory folder where i put all my php files.
my other friend have 1 directory folder where i put all my php files.
so total we got 5 derectory's and that not including all the php files in it.

but we are confuse on how this works. is there a way so we all have one directory and database? right now we feel like we are building 5 different websites. is there more to website like github that we can use.
please help

I suggest you read some of the documentation. The right way would be to have one master branch where the full working code is. If necessary, you can create branches from it if you need to work on something, and merge it back when done.

The simplest setup would be for all of you to commit to a single folder in the master branch.

https://help.github.com/categories/63/articles

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.