convert index to php