• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Wie benutzt man das Zend-Framework?

paoloposo

Mitglied
Hallo Forum,
ich habe einige Probleme mit dem Zend-Framework, das ich für meine Website benötige (für Youtube-Api-Zugriff).

Ich habe folgenden Code ausgeführt:
PHP:
$clientLibraryPath = 'C:/xampp/php/library/';
$oldPath = set_include_path(get_include_path() . PATH_SEPARATOR . $clientLibraryPath);
require_once 'Zend/Loader.php';
// the Zend dir must be in your include_path
Zend_Loader::loadClass('Zend_Gdata_YouTube');
$yt = new Zend_Gdata_YouTube();

$query = $yt->newVideoQuery();
$query->videoQuery = 'cat';
$query->startIndex = 10;
$query->maxResults = 20;
$query->orderBy = 'viewCount';

echo $query->queryUrl . "\n";

Das hat fehlerfrei funktioniert. Wenn ich aber noch das hier
PHP:
$videoFeed = $yt->getVideoFeed($query);
anfüge, bekomme ich eine Fehlermeldung:
Code:
[B]Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Unable to Connect to ssl://gdata.youtube.com:443. Error #1657890863: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?' in C:\xampp\php\library\Zend\Gdata\App.php:693 Stack trace: #0 C:\xampp\php\library\Zend\Gdata.php(221): Zend_Gdata_App->performHttpRequest('GET', 'https://gdata.y...', Array, NULL, NULL, NULL) #1 C:\xampp\php\library\Zend\Gdata\App.php(880): Zend_Gdata->performHttpRequest('GET', 'https://gdata.y...', Array) #2 C:\xampp\php\library\Zend\Gdata\App.php(768): Zend_Gdata_App->get('https://gdata.y...', NULL) #3 C:\xampp\php\library\Zend\Gdata\App.php(210): Zend_Gdata_App->importUrl('https://gdata.y...', 'Zend_Gdata_YouT...', NULL) #4 C:\xampp\php\library\Zend\Gdata.php(162): Zend_Gdata_App->getFeed('https://gdata.y...', 'Zend_Gdata_YouT...') #5 C:\xampp\php\library\Zend\Gdata\YouTube.php(263): Zend_Gdata->getFeed('https://gdata.y...', 'Zend_Gdata_YouT...') #6 C:\xampp\htdocs\test\test.ph in [B]C:\xampp\php\library\Zend\Gdata\App.php on line [B]693[/B][/B][/B]
Was muss ich machen, damit es funktioniert?
 
Werbung:
Na ja, auf meinem Webserver kann ich diese ganzen Einstellungen doch auch nicht vornehmen, weshalb mir das nicht so viel bringt.
 
Werbung:
Na ja, auf meinem Webserver kann ich diese ganzen Einstellungen doch auch nicht vornehmen, weshalb mir das nicht so viel bringt.
Wohl eher dein Problem denke ich.
Mein Vorschlag, such dir einen Provider, der ssl unterstützt und leg vielleicht ein paar Euro dafür hin.

So ist das wohl heute. Darf nix kosten, muss alles haben und muss immer parat stehen.
 
Zurück
Oben