Re: calling external php file before <html> tag
From: duz (dq5studios_at_gmail.com)
Date: 08/30/04
- Next message: Phil Powell: "Basic WWW Authentication function fails"
- Previous message: Good Man: "Re: Prevent someone spidering my data"
- In reply to: Ben: "Re: calling external php file before <html> tag"
- Next in thread: Ben: "Re: calling external php file before <html> tag"
- Reply: Ben: "Re: calling external php file before <html> tag"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Aug 2004 07:53:45 -0700
crescent_au@yahoo.com (Ben) wrote in message news:<d99e1341.0408291746.37a90909@posting.google.com>...
<snip>
>
> I get the following warning:
> Warning: Cannot modify header information - headers already sent by
> (output started at D:\Apache Group\Apache2\htdocs\phpfunc.php:26) in
> D:\Apache Group\Apache2\htdocs\phpfunc.php on line 8
>
Make the very first line of your main file ob_start() and after you're
done with setting the cookie do a ob_end_flush(). The first command
will cause PHP to buffer the output until the second command is
executed. This also means you don't need to put your cookie function
before the <html> but it is a good idea to execute it as soon as you
can so you don't have to worry about buffering too much output.
Ben
www.dq5studios.com
- Next message: Phil Powell: "Basic WWW Authentication function fails"
- Previous message: Good Man: "Re: Prevent someone spidering my data"
- In reply to: Ben: "Re: calling external php file before <html> tag"
- Next in thread: Ben: "Re: calling external php file before <html> tag"
- Reply: Ben: "Re: calling external php file before <html> tag"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|