Modified php file for heroku