Update core.php

url_get_contents with CURL