conversion wml to php???

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

3 replies · 537 views · started 16 years ago · 1 min read

4 participants
slowy Senior · 357 posts #1

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

<?
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>
wap2k Developer · 168 posts #4

Something like this:

<?
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>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close