Open GoogleCodeExporter opened 8 years ago
Your problem on the server is caused not only by the fact that allow_url_fopen
is disabled, but also because there's open_basedir.
When open_basedir or safe_mode are in effect, curl can't follow redirections,
and therefore is disabled. And since allow_url_fopen is also disabled, php
streams can't work either (and lightopenid should throw an exception in this
case -- I'll change that).
In this case, LightOpenID (and any other OpenID library) simply can't work
reliably.
I would advise to either change your hosting provider, or persuade it that
allow_url_fopen should be enabled.
In theory, it probably is possible to work around that -- if not by following
redirections manually, then by implementing a socket-based http client in php
(there probably are libraries that do it). So if you really want to, you can
try. However, an easier method would be to switch providers, if that's possible.
Original comment by mewp...@gmail.com
on 23 Nov 2011 at 6:37
Thanks Sir Mewp I'll try to work around it but if nothing works i'll probably
request to enable allow_url_fopen Tnx tnx..
Original comment by mar...@havocdigital.com
on 24 Nov 2011 at 1:56
just wondering sir mewp... are you going to release a version that uses a
socket based http client.. tnx..
Original comment by mar...@havocdigital.com
on 24 Nov 2011 at 10:46
I have no plans to do so. It's a lot of code (probably more than the whole
LightOpenID as of now) and would be of little use to most people.
Supporting both curl and streams requests already makes the library a lot
bigger than it needs to be (in order to work on a good configuration).
Original comment by mewp...@gmail.com
on 24 Nov 2011 at 10:55
oh thanks anyways...
Original comment by mar...@havocdigital.com
on 25 Nov 2011 at 1:24
Original issue reported on code.google.com by
mar...@havocdigital.com
on 23 Nov 2011 at 6:18