Changes to php files to make it work on my server

Also deleted DS_Stores and added .DS_Store file to gitignore in
subdirectories