Modify php file to support use ?id=1 to read the docshare database

Also add .gitignore file