Date: 04/23/99
- Next message: jwillis <email protected>: "[PHP-DEV] Bug #1347: setcookie executes after previous cookie value is read"
- Previous message: Jim Winstead: "Re: [PHP-DEV] DL Extensions"
- In reply to: Jim Winstead: "Re: [PHP-DEV] DL Extensions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I did encounter a strange situation where doing a php3_printf()
> within my function doesn't seem to work if nothing has been sent
> from the script yet (but works just fine if something has been sent
> already). Not a big deal, since I won't actually be doing that in
> the long run, but odd nonetheless.
There aren't too many modules that actually output directly. Most just
return something, so you may not have hit this before. If you have a
module that does its own output, then before the first possible bit of
output you need to do something like this:
if (!php3_header()) {
return;
}
php3_header() will return false on a HEAD request in which case your
module is not allowed to send anything.
-Rasmus
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: jwillis <email protected>: "[PHP-DEV] Bug #1347: setcookie executes after previous cookie value is read"
- Previous message: Jim Winstead: "Re: [PHP-DEV] DL Extensions"
- In reply to: Jim Winstead: "Re: [PHP-DEV] DL Extensions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

