Jump to content

walkero

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

About walkero

  • Birthday 10/02/1977

Contact Methods

  • Website URL
    http://www.intercube.gr

Profile Information

  • Gender
    Male
  • Location
    Athens Greece

walkero's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks or your remark. Here is the code I wrote. Do you have any clue? $client = new nusoap_client('http://demo02.tripadvisor.com/ContentService', true); $err = $client->getError(); if ($err) { echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>'; exit(); } $param = '<con:in0><api:clientLoginID>3CFC3B05146B40048B0C105A6CB9748F</api:clientLoginID><api:listId>16794</api:listId></con:in0>'; $result = $client->call('getTop10List', $param, 'con:getTop10List'); $client->call('getTop10List', $param, 'con:getTop10List'); if ($client->fault) { $output .= '<h2>Fault</h2><pre>'; print_r($result); echo '</pre>'; } else { $err = $client->getError(); if ($err) { $output .= '<h2>Error</h2><pre>' . $err . '</pre>'; } else { $output .= '<h2>Result</h2><pre>'; print_r($result); echo '</pre>'; } } $output .= '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>'; $output .= '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>'; $output .= '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
  2. Did anyone worked any project with TripAdvisor, for exchanging data using PHP? I'm trying to get data from the demo server at first, and then build the main processes. They use SOAP for echanging data, and I choose the nysoap php library. I'm trying to implement the client for it. it should send the following request to their development server: http://demo02.tripadvisor.com/ContentService <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con="http://content.tripadvisor.com" xmlns:api="http://api.content.tripadvisor.com"> <soapenv:Header/> <soapenv:Body> <con:getTop10List> <con:in0> <api:clientLoginID>3CFC3B05146B40048B0C105A6CB9748F</api:clientLoginID> <api:listId>16794</api:listId> </con:in0> </con:getTop10List> </soapenv:Body> </soapenv:Envelope> Unfortunately, whatever I tried doesn't work. I'm giving you my code for the client. $client = new nusoap_client('http://demo02.tripadvisor.com/ContentService', true); $err = $client->getError(); if ($err) { echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>'; exit(); } $param = '<con:in0><api:clientLoginID>3CFC3B05146B40048B0C105A6CB9748F</api:clientLoginID><api:listId>16794</api:listId></con:in0>';$result = $client->call('getTop10List', $param, 'con:getTop10List'); if ($client->fault) { $output .= '<h2>Fault</h2><pre>'; print_r($result); echo '</pre>'; } else { $err = $client->getError(); if ($err) { $output .= '<h2>Error</h2><pre>' . $err . '</pre>'; } else { $output .= '<h2>Result</h2><pre>'; print_r($result); echo '</pre>'; } } $output .= '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>'; $output .= '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>'; $output .= '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>'; Thanks in advance for your time.
  3. I'd like to ask you if there is a way to get from php the path of the mysql /bin catalog, where mysqldumb lies. I need it to run the "passthru()" function, to get an mysql backup file. I don't want to bother, depending the server, to insert manually the path! Can you tell me a better way to backup my mysql db? Thanks for your time!
  4. you mean that the variable \"todo\" is something that we shouldn\'t use...???? I fixed it by changing the register_globals.... Also there is one more problem. The server doesn\'t send the cookies...do you have any clue about that? thanks for your help
  5. I have a problem with a pc Win Xp pro installation of apache and php... I installed it as the manual says, it runs fine with no error on error.log. I also installed the latest version of MySQL as a service. Everything work just fine. The phpMyAdmin 2.5.3-rc1 works great with no problem... In there I put a folder with a page that I made. I use the same code on an other computer with an older version of apache and works just fine. At the new computer with the latest version there is a problem. It doesn\'t use the extra parameters on a URL. What I mean is that a URL like http://morpheus:82/guestbook.php?todo=add does not return a value of the variable todo. So I can\'t use the <?php echo $todo; ?> to get back that value. It returns nothing. But the phpMyAdmin 2.5.3-rc1 works great without having the problem that my page have. Does anyone know what\'s wrong?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.