Fri, 17 May 2024


How to create a simple WAP page using PHP?

By: Nathalie, NetArt Media
Fri, 30 April 2021

<?

header("Content-Type: text/vnd.wap.wml");

echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

?>

<wml>
<card id="hello">
<p>Today is

<?
echo date("m/d/Y");
?>

</p>
</card>
</wml>


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox