WML con PHP

From: Date: Wed, 04 Jul 2001 23:39:40 +0000
Subject: WML con PHP
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-11999@lists.php.net to get a copy of this message
Hola, estoy haciendo pruebas con el tema WML, y tengo problemillas. He añadido estas directrices al httpd.conf del Apache, tal como indica un mail de esta lista en la base de datos: # # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # # For example, the PHP3 module (not part of the Apache distribution) # will typically use: # #AddType application/x-httpd-php3 .phtml #AddType application/x-httpd-php3-source .phps AddType application/x-tar .tgz #AddType application/x-httpd-php3 .phtml #AddType application/x-httpd-php3 .php3 #AddType application/x-httpd-php3 .php AddType application/x-httpd-php3-source .phps AddType application/x-httpd-php4 .phtml AddType application/x-httpd-php4 .php3 AddType application/x-httpd-php4 .php4 AddType application/x-httpd-php4 .php # WAP MIME Types AddType text/vnd.wap.wml .wml AddType image/vnd.wap.wbmp .wbmp AddType text/vnd.wap.wmlscript .wmls AddType application/vnd.wap.wmlc .wmlc AddType application/vnd.wap.wmlscriptc .wmlsc Pero aun teniendo esta función de primera ejecución // // Capçalera WML function WML_commonHeader ($title) { header("Content-type: text/vnd.wap.wml"); echo("<?xml version=\"1.0\"?>\n"); //echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1// EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n"); echo("<wml>\n\n"); echo("<card id="generada" title=\"$title\">\n\n"); } el UP.simulator me da el siguiente error: cache miss: { <http://domini.ct/erc.barcelona/waphp/index.php> } net request: { <http://domini.ct/erc.barcelona/waphp/index.php> } HTTP GET Request: http://domini.ct/erc.barcelona/waphp/index.php Checking for URL 'domini.ct/erc.barcelona/waphp/index.php' in Whitelist not found ----------------- DATA SIZE ------------------------ Uncompiled data from HTTP is 341 bytes. ...found Content-Type: text/html. Content-Type: text/html is not handled by UP.Simulator. No translator for content-type: text/html y si le digo que me muestre lo que le ha llegado, me dice que le ha llegado esto, que es una página que nada tiene que ver con la que yo enviaba. ************************************************ Current WML ******************* *********************** <!-- WBXML public ID number 0x1108: "-//PHONE.COM//DTD WML 1.1//EN" --> <wml> <head> <meta forua="true" http-equiv="cache-control" content="max-age=0"/> </head> <card> <p>Content-Type Error. See Info Window for details.</p> </card> </wml> {} ******************************************************************************** ****************************************** Alguien se ha peleado antes en el tema? lo ha podido resolver? ------ fins aviat... Àlex Corretgé

« previous php.general.es (#11999) next »