Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/09/2010, 11:38
Avatar de CazaresLuis
CazaresLuis
 
Fecha de Ingreso: septiembre-2010
Ubicación: Distrito Federal
Mensajes: 67
Antigüedad: 13 años, 7 meses
Puntos: 2
Respuesta: Ayuda con PHP y MYSQL

Hola esto lod eseas hacer en tiempo real?, hace unos días puse en mi twitter esa pregunta y me recomendaron usar un proxy con php, la verdad no lo he probado pero de seguro te debe ayudar.

En otro caso si no es en tiempo real porque no mejor exportas las bases de datos a sql y las importas en el otro server

<?php
// PHP Proxy
// Loads a XML from any location. Used with Flash/Flex apps to bypass security restrictions
// Author: Paulo Fierro
// January 29, 2006
// usage: proxy.php?url=http://mysite.com/myxml.xml

$session = curl_init($_GET['url']); // Open the Curl session
curl_setopt($session, CURLOPT_HEADER, false); // Don't return HTTP headers
curl_setopt($session, CURLOPT_RETURNTRANSFER, true); // Do return the contents of the call
$xml = curl_exec($session); // Make the call
header("Content-Type: text/xml"); // Set the content type appropriately
echo $xml; // Spit out the xml
curl_close($session); // And close the session
?>

Última edición por GatorV; 04/10/2010 a las 16:03