Convert index from html to php.