Yeah. Once I added the quotes and all the warnings went away. It turns out that this library works much better for me. It doesn't have all the features (no server support, no RSA etc) but it fits our use-case perfectly. It's really light (doesn't even use OpenSSL). I wonder why it's not listed in http://oauth.net/code ?
I really appreciate all the help! On Mar 6, 6:45 pm, jr conlin <[email protected]> wrote: > If I remember php4, yes, you should quote those if you don't want the > warning messages in the error log. > > You can also turn off warnings in your php configuration files. > > Zhihong wrote: > > Thanks for the information. > > > I am glad I didn't try to port it to PHP 4. Sounds like a project I > > did to port C++ to C. > > > I tried that library from iamcal.com, it's really nice and clean. > > However, it prints warnings like this, > > > <b>Notice</b>: Use of undefined constant oauth_key - assumed > > 'oauth_key' in <b>/home/zhang/cvswork/idp/trunk/tools/api-client/src/ > > main/php4/lib_oauth.php</b> on line <b>41</b><br /> > > > This is the line, > > > $oauth_params['oauth_consumer_key'] = $key_bucket > > [oauth_key]; > > > I don't know PHP much. Should the 'oauth_key' be quoted? > > > Thanks for the help! > > > Zhihong > > > On Mar 5, 11:18 am, kellan <[email protected]> wrote: > > >>https://svn.iamcal.com/public/php/lib_oauth/ > > >> The terminology is a bit quirky, but the basic functionality is there, > >> and nicely light weight > > >> -kellan > > >> On Thu, Mar 5, 2009 at 10:35 AM, Zhihong <[email protected]> wrote: > > >>> Does anyone have an OAuth library that works in PHP4? > > >>> We have a client who is entrenched in PHP4. They already use OpenSSL > >>> so all the crypto functions are there. I don't think it would be hard > >>> to port current OAuth library to PHP4, is it? > > >>> Thanks! > > >>> Zhihong --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/oauth?hl=en -~----------~----~----~----~------~----~------~--~---
