开发者

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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜