title: Cannot get Oauth PHP extension to work
body: <p>I''m pulling my hair out when trying to carry out an oAuth journey using PHP.</p>
  
  <p>I'm using a MAC_OSX_10.7.4/MAMP/PHP and I am pointing to the php inside my MAMP environment. </p>
  
  <p>I have downloaded the latest oAuth php extension 1.2.2.</p>
  
  <p>I've run: </p>
  
  <pre><code>pecl install oauth
  </code></pre>
  
  <p>Which came back successful, when I try to reinstall it I get:</p>
  
  <pre><code>pecl/oauth is already installed and is the same as the released version 1.2.2
  </code></pre>
  
  <p>I have added the line: </p>
  
  <pre><code>extension=oauth.so
  </code></pre>
  
  <p>in my php.ini. but whenever I try and run this simple bit of code to test out oauth:</p>
  
  <pre><code>    &lt;?php
  
  define("CONSUMER_KEY", "dgqcifzjqksh");
  define("CONSUMER_SECRET", "73Ft6jKqe3A7sCsc");
  
  $oauth = new OAuth(CONSUMER_KEY, CONSUMER_SECRET);
  
  echo "oauth token" . $oauth;
  $request_token_response = $oauth-&gt;getRequestToken('https://api.linkedin.com/uas/oauth/requestToken');
  
  if($request_token_response === FALSE) {
          throw new Exception("Failed fetching request token, response was: " . $oauth-&gt;getLastResponse());
  } else {
          $request_token = $request_token_response;
  }
  
  print "Request Token:\n";
  printf("    - oauth_token        = %s\n", $request_token['oauth_token']);
  printf("    - oauth_token_secret = %s\n", $request_token['oauth_token_secret']);
  print "\n";
  
  ?&gt;
  </code></pre>
  
  <p>I get the following error in my php logs</p>
  
  <pre><code>PHP Fatal error:  Class 'OAuth' not found in /Applications/MAMP/htdocs/wemustcreate/wp-content/themes/MinimalDessign/linkedinOauth.php on line 6
  </code></pre>
  
  <p>Any Ideas what I might be doing wrong? I've checked php.ini and it doesnt show up there. I have even removed existing extensions and re added them to make sure my php.ini was updated correctly.</p>
  
  <p>The only thing I can see which stikes me as being slightly odd is that all my extensions ending with .so are all unix executable files but my oauth file is a document. could this be the problem? I have added a screenshot to show the extensions.</p>
  
  <p><img src="https://i.stack.imgur.com/KqQGj.png" alt="oauth.so as a document "></p>