All Discussions Tagged 'php' - Build2024-03-29T14:02:39Zhttp://build.ning.com/forum/topic/listForTag?tag=php&feed=yes&xn_auth=noNing PHP API connection issuetag:build.ning.com,2011-06-20:6308082:Topic:53312011-06-20T07:22:35.916ZVincenthttp://build.ning.com/profile/Vincent
<p>The curl connection on the NingAPI returns the #"7" error code every time I try to connect to my network</p>
<p> </p>
<p>I'm think it might be caused by the fact that my offices are behind a proxy.</p>
<p>I tried adding this code to the curl connection code but it still returns "a connection failed error".</p>
<p> </p>
<p>curl_setopt($ch, CURLOPT_TIMEOUT, self::CURL_TIMEOUT);</p>
<p>curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);</p>
<p>curl_setopt($ch, CURLOPT_PROXY, "proxy…</p>
<p>The curl connection on the NingAPI returns the #"7" error code every time I try to connect to my network</p>
<p> </p>
<p>I'm think it might be caused by the fact that my offices are behind a proxy.</p>
<p>I tried adding this code to the curl connection code but it still returns "a connection failed error".</p>
<p> </p>
<p>curl_setopt($ch, CURLOPT_TIMEOUT, self::CURL_TIMEOUT);</p>
<p>curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);</p>
<p>curl_setopt($ch, CURLOPT_PROXY, "proxy address");</p>
<p>curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); </p>
<p> </p>
<p>Any help is appreciated thanks in advance.</p> First integration Ning <-> Drupaltag:build.ning.com,2010-12-08:6308082:Topic:7662010-12-08T10:07:35.000ZPierre Lannoyhttp://build.ning.com/profile/PierreLannoy
<p>Hello everyone!</p>
<p><br></br>I wanted to inform you of the launch of the first (to my knowledge) Drupal site integrating a Ning delegated authentication.The pattern of operation is quite simple. This site allows any member of the <a href="http://www.voile-rc.com/" target="_blank">Voile-RC</a> ning-network to authenticate on this Drupal site with its Ning credentials. All posts this member will do on this Drupal site will be accompagnied of its name, photo and a link to its profile page. The…</p>
<p>Hello everyone!</p>
<p><br/>I wanted to inform you of the launch of the first (to my knowledge) Drupal site integrating a Ning delegated authentication.The pattern of operation is quite simple. This site allows any member of the <a href="http://www.voile-rc.com/" target="_blank">Voile-RC</a> ning-network to authenticate on this Drupal site with its Ning credentials. All posts this member will do on this Drupal site will be accompagnied of its name, photo and a link to its profile page. The website address is <a href="http://plando.voile-rc.com" target="_blank">http://plando.voile-rc.com</a> .</p>
<p><br/>With the goal that everyone can benefit from this development, I decided to submit this module to the Drupal community to make it accessible from any Drupal installation. This process is long and I will keep you informed when my module will be approved.</p>
<p> </p>
<p>Stay tuned.</p>
<p>Pierre</p> cURL exception in Ning API PHP librarytag:build.ning.com,2010-11-04:6308082:Topic:5362010-11-04T21:17:45.000ZPierre Lannoyhttp://build.ning.com/profile/PierreLannoy
<p>Hi all at Ning !</p>
<p><br></br>I am currently developing (and debugging) with php and I'm using the Ning API PHP library available on github</p>
<p>When I make a call to the "<strong><span style="font-family: 'courier new', courier;">get</span></strong>" function, it raises the following exception: "<strong><span style="font-family: 'courier new', courier;">cURL error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL…</span></strong></p>
<p>Hi all at Ning !</p>
<p><br/>I am currently developing (and debugging) with php and I'm using the Ning API PHP library available on github</p>
<p>When I make a call to the "<strong><span style="font-family: 'courier new', courier;">get</span></strong>" function, it raises the following exception: "<strong><span style="font-family: 'courier new', courier;">cURL error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed</span></strong>".</p>
<p>To work around this error (to avoid to verify the CA cert), I added the following line just after the <strong><span style="font-family: 'courier new', courier;">curl_init()</span></strong> call (in the "<strong><span style="font-family: 'courier new', courier;">call</span></strong>" function) : </p>
<p><code>curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);</code></p>
<p>This is fine for debugging, but this method is indeed a real security hole! I think a real solution should be implemented in the future version of the Ning API PHP library...</p>
<p>Do you plan to fix this in future versions, and if so can you tell me when?</p>
<p> </p>
<p>Best regards, and thanks again for all the work you do.</p>
<p>Pierre</p>