Hi.
I'm trying to implement OpenID. I've cut my code right back to try and get OpenID to work (as a consumer) but the login() methof just keeps failing! Here's the code:
require 'Zend/Http/Client.php';
require 'Zend/OpenId/Consumer.php';
$client = new Zend_Http_Client(null, array(
'adapter' => 'Zend_Http_Client_Adapter_Curl',
));
$consumer = new Zend_OpenId_Consumer();
$consumer->setHttpClient($client);
$url = 'https://www.google.com/accounts/o8/id';
$res = $consumer->login($url,
'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],
'*');
echo '<pre>';
var_dump($res);
echo '</pre>';
return;
$res, is always FALSE.
I'm using PHP 5.2.10, i've got allow_url_fopen ON, cURL enabled and openssl enabled. I've tried the code on my local dev machine and my production environment and nether work!
Can anyone point me in the right direction, i'm really stumped with this one!
Thanks, Jon