Bonjour,
J'utilise le Zend Framework uniquement pour le service Amazon.
En local (ubuntu, apache, php, mysql, phpmyadmin) tout fonctionne bien !
Mais en ligne (hébergeur SFR) je reçois cette erreur.
Le test
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 /exemple1.php?isbn=9782070357130 <?php require_once('Zend/Service/Amazon.php'); $amazon = new Zend_Service_Amazon('***','FR','***'); $results = $amazon->itemSearch(array('AssociateTag' => '***', 'SearchIndex' => 'Books', 'Keywords' => $_GET['isbn'])); foreach ($results as $result) { echo $result->Title . '<br />'; } ?>
D'où vient ce problème ?
Fatal error: Uncaught exception 'Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to tcp://webservices.amazon.fr:80. Error #110: Connection timed out' in /var/www/m/ma/map/***.perso.sfr.fr/public_html/Zend/Http/Client/Adapter/Socket.php:235 Stack trace: #0 /var/www/m/ma/map/***.perso.sfr.fr/public_html/Zend/Http/Client.php(1059): Zend_Http_Client_Adapter_Socket->connect('webservices.ama...', 80, false) #1 /var/www/m/ma/map/***.perso.sfr.fr/public_html/Zend/Rest/Client.php(137): Zend_Http_Client->request('GET') #2 /var/www/m/ma/map/***.perso.sfr.fr/public_html/Zend/Service/Amazon.php(117): Zend_Rest_Client->restGet('/onca/xml', Array) #3 /var/www/m/ma/map/***.perso.sfr.fr/public_html/exemple1.php(9): Zend_Service_Amazon->itemSearch(Array) #4 {main} thrown in /var/www/m/ma/map/***.perso.sfr.fr/public_html/Zend/Http/Client/Adapter/Socket.php on line 235
Si c'est un blocage du côté du serveur.
Quelle fonctionnalité est bloquée. Car je peux me tourner vers un autre serveur.
Partager