Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/04/2006, 14:50
Avatar de Wdeah
Wdeah
 
Fecha de Ingreso: julio-2005
Ubicación: Argentina
Mensajes: 109
Antigüedad: 18 años, 9 meses
Puntos: 0
file_get_contents ($url);
si los datos que se envian a la pagina tienen que ser enviados mediante post, aca tenes una funcion que podes modificar para que se adapte a lo que buscas

Código PHP:
function PostRemoto ($host$query$others=''){
$path explode('/',$host);
$host $path[0];
unset(
$path[0]);
$path '/'.(implode('/',$path));
$post "POST $path HTTP/1.1\r\nHost: $host\r\nContent-type: application/x-www-form-urlencoded\r\n${others}User-Agent: Mozilla 4.0\r\nContent-length: ".strlen($query)."\r\nConnection: close\r\n\r\n$query";
$h fsockopen($host80);
fwrite($h$post);
for (
$a=0,$r='';!$a;){
    
$b fread($h,8192);
    
$r .= $b;
    
$a = (($b == '') ? 0);
}
fclose($h);
return 
$r;