Hi.
I’m just wondering if somebody can update EOpenID to new LightOpenID version 0.3 (Oct 19, 2010), which “removes dependency on curl in favor of php streams, and fixes some bugs”.
Thanks a lot.
Hi.
I’m just wondering if somebody can update EOpenID to new LightOpenID version 0.3 (Oct 19, 2010), which “removes dependency on curl in favor of php streams, and fixes some bugs”.
Thanks a lot.
You should contact extension author directly, I think. His forum id is listed in the right column at extension page: http://www.yiiframework.com/extension/eopenid/
hi, You can use this piece of code to replace the original request () method:
protected function request($url, $method='GET', $params=array()) {
$method = strtoupper($method);
$query = http_build_query($params, '', '&');
$option = array('method' => $method, 'max_redirects' => 5,
'timeout' => 5, 'ignore_errors' => true);
if ($method == 'POST')
$option['content'] = $query;
else {
$url .= ( strpos($url, '?') ? '&' : '?') . $query;
if ($method != 'HEAD')
$option['method'] = 'GET';
}
$context = stream_context_create(array('http' => $option));
$body = @file_get_contents($url, false, $context);
$head = implode("\r\n", $http_response_header);
return $head . "\r\n\r\n" . $body;
}
I have uploaded my full version of LightOpenid as attachment file.
Hi.
Thank you.
Thanks man
Thank you all! Updated
Then I should not get this error
Descripción
Curl extension is required.
Archivo Fuente:
D:\MOI\sp\website\protected\components\EOpenID.php(101)
00089: 'contact/postalCode/home' => 'postcode',
00090: 'contact/country/home' => 'country',
00091: 'pref/language' => 'language',
00092: 'pref/timezone' => 'timezone',
00093: );
00094:
00095: function __construct()
00096: {
00097: $this->trustRoot = ($_SERVER['HTTPS']=='on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
00098: $this->returnUrl = $this->trustRoot . $_SERVER['REQUEST_URI'];
00099:
00100: if (!function_exists('curl_exec')) {
00101: throw new ErrorException('Curl extension is required.');
Am I wrong?
i try to use this library, but got errors
first i got error "Undefined index: HTTPS" on line
$this->trustRoot = ($_SERVER['HTTPS']=='on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
so i changed
$this->trustRoot = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
then i got error
i changed code
if ($info->$attribute)
return $info->$attribute;
to
if (isset($info[$attribute]))
return $info[$attribute];
i see that errors getting only me, i use sample code http://www.yiiframework.com/extension/eopenid/#hh4
why i get errors?
I used your example code and I get exception No server found .