Update index.php

file_get_contents does not work for https address'. Switched to a curl block of code to make this work again.