what would the cause curl to return false instead of value?
While I execute curl it’s returning boolean instead of value. Can anyone help me
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Kindly check whether you added the below code or not.
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
Add the below code and you will get the exact error into your errorlogs file.
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_STDERR, $err);
where $err is a file handle to output errors. For example:
$err = fopen(dirname(__FILE__).'/errorlogs.txt', 'w');