conversion wml to php???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    conversion wml to php???

    how to convert this code so that it can be open in google chrome?

    PHP Code:
    <?
    session_start();
    require ('data/config.php');
    require ('data/mysql.php');
    require ('data/functions.php');
    /*header("Content-type: application/vnd.wap.xhtml+xml; charset=UTF-8");
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");

    echo "<?xml version=\"1.0\"?>";
                    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
                    echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";   */
    header ("Content-type:text/vnd.wap.wml; charset=utf-8");
    print '<?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">
    <wml>';

    /*<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml" charset="utf-8"/>
    <title><?print "$site_title";?></title>  */    ?>
    <card title="<?print "$site_title";?>">

    <?
    //require ('html/style.php');
    //if (!authenticateUser( $cookie_user, $cookie_passwd))
            //$au=0;
    //else
           // $au=1;  
    ?>     
    <?
     $aur=1;
    require ('html/lo.php');
    //require ('html/up.php');
    ?>  
       <a href="http://fanerka.org/click.php?id=120"><img src="http://fanerka.org/banner.php?id=120" alt="BannerS"/></a><br/> </p>
    </card>
    </wml>
    Last edited by slowy; 17.07.10, 09:01.

    http://WapTops.com- Get Real High Traffic
    http://WapFun.info-Fun 4 Wap

    #2
    this is php. i think you meant to convert wml to xhtml?
    Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

    Comment


      #3
      try changing the <wml> </wml> to <html> </html

      WapCHAT Forum Currenltly changing over to xhtml

      My Dowloads Site

      Comment


        #4
        Something like this:

        PHP Code:
        <?
        session_start();
        require ('data/config.php');
        require ('data/mysql.php');
        require ('data/functions.php');
        header("Content-type: application/vnd.wap.xhtml+xml; charset=UTF-8");
        header("Cache-Control: no-cache, must-revalidate");
        header("Pragma: no-cache");
        echo "<?xml version=\"1.0\"?>";
        ?>
        <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <title>MY Site</title>
        </head>
        <body>
        <?
        //require ('html/style.php');
        //if (!authenticateUser( $cookie_user, $cookie_passwd))
                //$au=0;
        //else
               // $au=1;  
         $aur=1;
        require ('html/lo.php');
        //require ('html/up.php');
        ?>  
         <a href="http://fanerka.org/click.php?id=120"><img src="http://fanerka.org/banner.php?id=120" alt="BannerS"/></a><br/> </p>
        </body> 
        </html>

        Comment

        Working...
        X