Re: header() behavior
| From: | Jon Farmer | Date: | Wed, 10 Oct 2001 08:20:25 +0000 |
| Subject: | Re: header() behavior | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70604@lists.php.net to get a copy of this message | ||
> Hello. We try to make a php-powered WML page. We need to send our own
> header, and we dont want the default one, header() only adds elements to
the
> header sent, we dont want the header at all, so we can generate our own.
Is
> this possible? PHP 4.0.6
Actually you are wrong in that assumption. If you want a no-caching wml page
generated from php, make sure you have the following called before any ouput
and it works fine (provided of course the WAP gateway compiles your code ok)
header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
if you want the page to be cached on the phone then just use the first
header call.
Regards
Jon
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send blank email to pgpkey@bctech.co.uk