My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
PHPOAuthSupport  
How to enable OAuth on your PHP installation
Featured, Phase-Deploy, Phase-Implementation
Updated Jun 11, 2009 by jerryab...@gmail.com

Introduction

With the release of v1.0.3, the psYiiExtensions library supports the PHP oauth library. In order to utilize this you must first install the library and enable it.

This mini-guide will explain how to do it.

Details

I'm not certain about Windows, but I'm sure it's similar.

In a nutshell, here's what you need to do:

1. Obtain the oauth library from the above repository. If you do not have root access to your machine, speak with your network administrator and/or hosting provider to see if they can install the library for you.

I installed it with pecl like this:

# pecl install oauth

2. Add the following line to your php.ini file:

extensions=oauth.so

3. Restart your web server

Testing

If you try and create a CPSTwitterApi object, if oauth is not installed properly it will throw an exception.

If you need help, let me know.

Comment by pegel.li...@gmail.com, May 3, 2010

tes

Comment by npat...@gmail.com, Oct 12, 2011

I am unable to enable the oauth.so library, i added the line extensions=oauth.so in my php.in file, but it does not appear to be enabled as it is not in the phpinfo file. Can you please help. I am using Mac OS 10.5


Sign in to add a comment
Powered by Google Project Hosting