I'm trying to port a PHP-based API over from shared hosting to Google App Engine. I've downloaded the PHP SDK, created a new application in the launcher, enabled cURL in php.ini (using extension=curl.so
), and now I'm getting this error:
Fatal error: Call to undefined function MyNamespace\curl_init() in C:\Users\David\Desktop\GAE\mysampleapp\classes\myclass.php on line 56
If I add a backslash to curl_init() (to tell it not to use MyNamespace), I get this:
Fatal error: Call to undefined function curl_init() in C:\Users\David\Desktop\GAE\mysampleapp\classes\myclass.php on line 56
Short of enabling cURL_lite() (which I might tackle later, because that doesn't support the cURL options i need), how can i resolve this?
EDIT: My question differs from the suggested duplicate, because I'm following Google's own instructions for enabling cURL
EDIT 2: I was able to get this running on the app engine SDK / launcher by changing the extension to php_curl.dll.