Re: php+apache+wml

From: Date: Mon, 18 Mar 2002 14:34:54 +0000
Subject: Re: php+apache+wml
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-6396@lists.php.net to get a copy of this message
Hi, I hav no idea about wap, but I think by default, PHP is configured to send HTML output to the browser. The web server does this by sending a content-type = text/html header along with your HTML code. This tells the browser that it will be receiving HTML. To override this behaviour of the webserver maybe try to use in your php-scripts: header("Content-type: text/wml"); Fabio Spinelli wrote: > hi all, I'd like to write some WAP pages, generated by a PHP script. > > I use Apache on a RedHat 7.1 > If I put on the webserver a normal page .wml and I connect to this page via > mobile phone it works fine. > > If I put a page .php that return a wap page I get this error: > > "The WAP site you have requested () has the MIME-type text/html, which is > not handled by this browser. This usually means that the requested page is > made for WWW rather than the mobile internet, or that the content-provider's > server is misconfigured." > > I tried to change some voice of the htttpd.conf file by specifying the MIME > type to handle, but without success. > > Can anyone help me by telling how to configure exactly Apache to run .PHP > pages that gives an output in a MIME content that is compatible with WML? > (and also have the normal PHP pages via normal browser still working) > > Thanks to everybody, Fabio Spinelli > http://www.kel666.it

« previous php.install (#6396) next »