![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/03/2002, 12:48
|
| | Fecha de Ingreso: marzo-2002
Mensajes: 3
Antigüedad: 22 años, 10 meses Puntos: 0 | |
Re: Response.Redirect en PHP Disculpen mi ignorancia, pero tras probar no pude hacer funcionar el redireccionamiento. Este es mi ejemplo:
<?
$idioma=substr($HTTP_ACCEPT_LANGUAGE,0,2);
if ($idioma == "es")
header("location: sp/index.html");
else
header("location: index.html");
?>
Donde el directorio sp/ es un subdirectorio para el español. Así planteado no me redirecciona a ningún lado, me da este error.
Warning: Cannot add header information - headers already sent by (output started at /html/prueba.php:2)
Gracias |