problemas con include y header
| From: | assist | Date: | Thu, 27 Apr 2000 22:53:32 +0000 |
| Subject: | problemas con include y header | ||
| References: | 1 2 3 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-8207@lists.php.net to get a copy of this message | ||
> Hola a todos,
> Por que tengo este error:
>
> Warning: Cannot add header information - headers already sent in
> /www/htdocs/tajada/movilsat/test.php on line 3
>
> Este es Test.php
> <?php
> include 'comun.php';
> header("Location:index.php");
> exit();
> ?>
>
> <html>
> <head>
> <title>test</title>
> </head>
>
> <body>
>
> </body>
> </html>
>
Este es comun.php:
<?
$s="hello world";
?>
Saludos,
Javier