Converting index to php