note 9486 added to header
| From: | root at 1az dot net | Date: | Mon, 06 Nov 2000 17:22:29 +0000 |
| Subject: | note 9486 added to header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7456@lists.php.net to get a copy of this message | ||
wap and php are possible with header(), (if anyone is still interested by WAP).
after a slight edition of your apache config file :
DirectoryIndex .wml
AddType application/x-httpd-php3 .wml
On your .wml file, just add first :
<?
header('Content-type: text/vnd.wap.wml');
/* Your wap page around..*/
?>
<wml>
....
</wml>
http://www.php.net/manual/function.header.php