Précédent   Forum des professionnels en informatique > PHP > Outils > Zend > Zend Framework
Zend Framework Forum d'entraide sur la programmation PHP avec Zend Framework. Avant de poster -> FAQ ZF, Cours ZF
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 01/11/2011, 13h39   #1
Invité de passage
 
Inscription : mai 2003
Messages : 10
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 10
Points : 1
Points : 1
Par défaut Zend Service Amazon

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 :
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 ?
Citation:
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.
PtiBubu est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/11/2011, 23h51   #2
Modérateur
 
Homme Loïc
Développeur Web
Inscription : février 2011
Messages : 680
Détails du profil
Informations personnelles :
Nom : Homme Loïc
Âge : 26
Localisation : France, Hérault (Languedoc Roussillon)

Informations professionnelles :
Activité : Développeur Web
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : février 2011
Messages : 680
Points : 1 044
Points : 1 044
Bonjour tu ne peux peut etee pas sortir en tcp
5h4rk est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 12h33.


 
 
 
 
Partenaires

Hébergement Web