Disabling SSL check on OAuth calls (PHP)
I'm pretty new to php so this might be a noob question.
I'm using this library to make oauth-signed requests, but I'm getting a problem with the ssl certs. I need to bypass the certificate validation (I know this is a security problem, it's for development only).
I've found this function:
http://php.net/manual/en/oauth.disablesslchecks.php
Which looks exactly what I n开发者_Go百科eed but when trying to run the code with this:
OAuth::disableSSLChecks();
I get this error:
[Fri Dec 17 15:43:12 2010] [error] [client ::1] PHP Fatal error: Class 'OAuth' not found in /Library/WebServer/Documents/oauth/test.php on line 9
Any ideas why this is happening ? Thanks!
Ensure that you have the OAuth PECL library installed. You can tell if it's installed by producing a phpinfo().
精彩评论