; To: Rasmus Lerdorf; PHPSpooky
> Cc: 'Marek Kilimajer'; [EMAIL PROTECTED]
> Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre..
>
> there is a possible problem if there is whitespace before or after a
php
> tag
> check that !!
--
PHP General Mailing List
PROTECTED]
Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre..
Glory!
I have two files, directory.php and global.inc.php
In directory.php ... this is the first line :
followed by the HTML tags..
and at Line 54 begins the php code in this page..
I have tried a lot o
e-
> > From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
> > Sent: Friday, June 27, 2003 7:25 PM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] 'Cannot send Headers' Problem!! MOre..
> >
> > The top means the top of the f
echo .. things like that.. nothing has
worked so far.
Thanks,
PHPSpooky
> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 28, 2003 11:50 AM
> To: PHPSpooky
> Cc: 'Marek Kilimajer'; [EMAIL PROTECTED]
> Subject: RE
lto:[EMAIL PROTECTED]
> > Sent: Friday, June 27, 2003 7:25 PM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] 'Cannot send Headers' Problem!! MOre..
> >
> > The top means the top of the file, not the top of your coding.
> &
ng!
I still get the Headers cannot be modified error..
Is there no solution to this problem?
PHPSpooky
> -Original Message-
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 27, 2003 7:25 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> S
..
PHPSpooky
> -Original Message-
> From: Edward Peloke [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 27, 2003 7:26 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre..
>
> maybe you already did this but can you send your code?
maybe you already did this but can you send your code?
-Original Message-
From: PHPSpooky [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 9:46 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre..
> Headers can
The top means the top of the file, not the top of your coding.
Simply:
Line 1. of directory.php:
Line 2. of directory.php:
Line 3. of directory.php:
PHPSpooky wrote:
Headers can't be sent after HTML output, it's as simple
as it sounds. What that means is, if you suddenly decide
you want to
> Headers can't be sent after HTML output, it's as simple
> as it sounds. What that means is, if you suddenly decide
> you want to send a Location header to redirect the browser,
> you can't if you outputted any HTML before the line that
> outputs the location, unless ofcourse your using Output
> B
You got it all wrong: HTML is the output!
If recomend you read the http specification to learn why.
PHPSpooky wrote:
Glory!
Just to check .. I removed all HTML code from the directory.php page..
and just left the PHP code.. and it worked fine!!
So the problem is with the HTML code.. whatever HTML
Headers can't be sent after HTML output, it's as simple
as it sounds. What that means is, if you suddenly decide
you want to send a Location header to redirect the browser,
you can't if you outputted any HTML before the line that
outputs the location, unless ofcourse your using Output
Buffering.
Glory!
Just to check .. I removed all HTML code from the directory.php page..
and just left the PHP code.. and it worked fine!!
So the problem is with the HTML code.. whatever HTML is outputting..
somehow it's taking it as the output and this generating the Warning!
But I need the HTML in the dir
13 matches
Mail list logo