Problema Sesiones
Estoy programando una web en mi propio pc usando el Apache y pongo esto:
<?php
session_register('contador');
?>
y me sale este error:
Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at D:ServidorWEBindex.php:3) in D:ServidorWEBindex.php on line 4
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at D:ServidorWEBindex.php:3) in D:ServidorWEBindex.php on line 4
A que se debe? debo configurar algo del Apache o del PHP? (uso Apache 2.X y PHP 5.X)
<?php
session_register('contador');
?>
y me sale este error:
Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at D:ServidorWEBindex.php:3) in D:ServidorWEBindex.php on line 4
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at D:ServidorWEBindex.php:3) in D:ServidorWEBindex.php on line 4
A que se debe? debo configurar algo del Apache o del PHP? (uso Apache 2.X y PHP 5.X)