Add error checking and echo out potential errors. Currently, you’re assuming that curl_exec is returning with no error.