Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/08/2003, 00:01
fran86
 
Fecha de Ingreso: agosto-2002
Ubicación: Colón - Entre Rios - Argentina
Mensajes: 647
Antigüedad: 21 años, 8 meses
Puntos: 8
Otra forma conveniente si los scripts estan en diferentes servers (o en el mismo inclusive aunque no practica para este caso) es usando sockets para simular el envio por POST
http://ar.php.net/sockets
Fijate en las contribuciones de los usuarios un mesaje de sethmail at poczta dot fm fechado el 08-Jul-2002 06:03 puso esto:
Código PHP:
To Ramar: All you have to do is to use fopen() function.

Here is an example of using POST method:
<?
$host 
"www.php.net";
$data "lang=en_US&pattern=sockets&show=quickref";

$fp fsockopen($host,80);

fputs($fp"POST /search.php HTTP/1.1\n");
fputs($fp"Host: $host\n");
fputs($fp"Content-type: application/x-www-form-urlencoded\n");
fputs($fp"Content-length: " strlen($data) . "\n");
fputs($fp"User-Agent: MSIE\n");
fputs($fp"Connection: close\n\n");
fputs($fp$data);

while (!
feof($fp))
$buf .= fgets($fp,128);
fclose($fp);

echo 
$buf;
?>
Y tengo idea que se puede hacer algo parecido con la libreria CURL.

Saludos!