Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/11/2012, 13:17
Avatar de satjaen
satjaen
 
Fecha de Ingreso: septiembre-2012
Ubicación: Jaén (Andalucía)
Mensajes: 893
Antigüedad: 11 años, 7 meses
Puntos: 10
Error al hacer el header solo en el servidor.

Buenas tardes, me da el siguiente error al realizar un header que en el servidor local me funciona bien y cuando lo subo al servidor me lo da:

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\xn--electrodiseo-khb.es\httpdocs\Wedserver\Connections\conexion.php :2) in C:\Inetpub\vhosts\xn--electrodiseo-khb.es\httpdocs\Wedserver\actualizar_aparatos.php on line 61

Y en la linea 61 del cod tengo header("Location:$updateGoTo");

Código:
  mysql_select_db($database_conexion, $conexion);
  $Result1 = mysql_query($updateSQL, $conexion) or die(mysql_error());
  $updateGoTo = "menu3.php?id=" . $_POST["NUM_USUARIO"];
  header("Location:$updateGoTo");
  exit;
Gracias y un saludo