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]
Subject: Re: [PHP] 'Cannot send Headers' Problem!! MOre..
The top means the top of the file, not the top
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.
Simply:
Line 1. of directory.php: ?php include_once(global.inc.php
] 'Cannot send Headers' Problem!! MOre..
First, where is your header call? And when you do a view source on
the
page with the error, what do you see before that error is shown?
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[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 file, not the top of your coding.
Simply:
Line 1. of directory.php: ?php include_once
'
Cc: [EMAIL 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 :
?php include(global.inc.php); $admin = is_admin();?
followed by the HTML tags..
HTML
HEAD
; 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 (http://www.php.net/)
To unsubscribe, visit: http
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
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.
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
The top means the top of the file, not the top of your coding.
Simply:
Line 1. of directory.php: ?php include_once(global.inc.php) ?
Line 2. of directory.php: html
Line 3. of directory.php: head
PHPSpooky wrote:
Headers can't be sent after HTML output, it's as simple
as it sounds. What that
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't be sent after HTML
..
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?
--
PHP General Mailing List (http
13 matches
Mail list logo