php - Can't track down bug -


The following script is part of the script which is used to certify paypal payments.

  $ ch = curl_init (); Curl_setopt ($ ch, CURLOPT_URL, 'https: //'. $ Server. '/ CGI-bin / webscr'); Curl_setopt ($ ch, CURLOPT_POST, true); Curl_setopt ($ CH, CURLOPT_POSTFIELDS, $ parameter); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, true); Curl_setopt ($ CH, CURLOPT_HEADER, incorrect); Curl_setopt ($ ch, CURLOPT_TIMEOUT, 30); Curl_setopt ($ CH, CURLOPT_SSL_VERIFYPEER, incorrect); $ Result = curl_xac ($ CH); Curl_error ($ ch); Curl_close ($ ch);  

There is a problem with curl_exec on some rare occasions that stops the script executing on that line.

No error has been entered in the cpanel error log and after doing many different things, I am not clear what is happening due to curl.

I am not very familiar with curls, so if someone knows a good way to get information from this error, or maybe what might be the reason for this problem, I would appreciate it.

It can take only a long time.

  Curl_setopt ($ ch, CURLOPT_TIMEOUT, 30);  

Set time out of 30 seconds Do you think you are waiting long?

Use CURLOPT_TIMEOUT_MS to set the deadline in milliseconds.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -