Re: DL Extensions
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: DL Extensions | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-5243@lists.php.net to get a copy of this message | ||
> 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@lists.php.net
For help: php-dev-help@lists.php.net