Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/11/2012, 09:16
chimaria
 
Fecha de Ingreso: marzo-2009
Mensajes: 121
Antigüedad: 15 años, 1 mes
Puntos: 1
Problema al cargar una url

Saludos a todos, tiempo sin comentar, pero les tengo una consulta que hacer estoy tratando de cargar una url que al momento de cargarla me devuelve unos parametros, el problema es que haciendolo de esta forma no me funciona:

$url ='www.google.com';
if(file_exists($url)) {
$handle=fopen($url,'r');
$response="";
while (!feof($handle)){
$response=stream_get_contents($handle);
}
fclose($handle);

list($status,$message,$nit,$nsu)=explode("|",$resp onse);
}else{
echo '<<<<<< no entro>>>>';
}

y este código me dice que no consigue el archivo

pero si cargo la pagina por html si lo hace :::

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Pago en LÃ*a</title>
<script type="text/javascript">

function cargarurl(){

window.frames.parent.location.href="http://www.google.com";
}

</script>
</head>
<body onLoad="cargarurl()";>
</body>
</html>
y aqui si me funciona que estare haciendo mal en php
Please necesito de su ayuda
Gracias