Necesito ayuda urgente plisplis...
Intento redireccionar a una página de la manera siguiente:
ob_start(); // linea 35
header("Cache-Control: private"); // linea 36
header("Location: ./home.php");
y me sale este error:
Warning: Cannot add header information - headers already sent by (output started at c:\foxserv\www\menu.php:20) in c:\foxserv\www\actusu.php on line 35
Warning: Cannot add header information - headers already sent by (output started at c:\foxserv\www\menu.php:20) in c:\foxserv\www\actusu.php on line 36
Pero si solo pongo esto:
header("Location: ./home.php"); // linea 34
me sale este error:
Warning: Cannot add header information - headers already sent by (output started at c:\foxserv\www\proyecto\menu.php:20) in c:\foxserv\www\proyecto\actusu.php on line 34
que hago mal??? que le pasa a esto??
gracias de antemano!!