How does this web site work, I want to do something like this with php