Salve,
ho un sito in cui utilizzo la librerie Zend per fare l'upload di alcuni video sul mio account youtube.
Ho caricato questo sito su 000webhost facendomi un account free.
Per far funzionare la libreria Zend ho copiato tutta la cartella "Zend" contenente le librerie sull'host.
Nella mia pagina php utilizzo codice di questo tipo:
Codice PHP:
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();
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
...
In locale mi funziona tutto.
Quando però accedo alla mia pagina php che utilizza Zend (sull'host) ho il seguente errore:
codice:
Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Unable to Connect to ssl://www.google.com:443. Error #-1212492432: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?' in /home/a4603291/public_html/Zend/Gdata/ClientLogin.php:141 Stack trace: #0 /home/a4603291/public_html/upload_youtube.php(44): Zend_Gdata_ClientLogin::getHttpClient('nikola_silva@ho...', '83silva83', 'youtube', NULL, 'MySource', NULL, NULL, 'https://www.goo...') #1 {main} thrown in /home/a4603291/public_html/Zend/Gdata/ClientLogin.php on line 141