convert index to php for heroku