|
|
|
<?
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\n");
echo("<!-- Code written in Microsoft NOTEPAD.EXE -->\n");
?>
<wml>
<card id="init" title="Client Info">
<p>
<?
// First part - standard HTTP stuff
$headers = getallheaders();
while (list($header, $value) = each($headers)) {
echo strtoupper($header).": ". $value."<br/>\n";
}
// Second part
echo("REMOTE_ADDR: ".$REMOTE_ADDR."<br/>\n"); // IP address of the client side
echo("REMOTE_PORT: ".$REMOTE_PORT."<br/>\n"); // Port at the client side
echo("REMOTE_USER: ".$REMOTE_USER."<br/>\n"); // Name of authenticated user
echo("GATEWAY_INTERFACE: ".$GATEWAY_INTERFACE."<br/>\n"); // Gateway Interface type
echo("SERVER_PROTOCOL: ".$SERVER_PROTOCOL."<br/>\n"); // Protocol used by the server
echo("REQUEST_METHOD: ".$REQUEST_METHOD."<br/>\n"); // Request Method
echo("HTTP_CONNECTION: ".$HTTP_CONNECTION."<br/>\n"); // Connection type
echo("HTTP_VIA: ".$HTTP_VIA."<br/>\n"); // Host it connected via (proxy)
?>
</p>
</card>
</wml> |
|
| WML error handler for the Apache webserver. Categories : PHP, WML, WAP | | | Multi-table database search for your WAP-enabled device. Uses PHP and MySQL. No WMLscript. Categories : WAP, WML, PHP, MySQL | | | php embeded with wml ,wmlscript ,simple example U can add mysql Categories : WAP, PHP, WML | | | Sample WML Mailer Categories : PHP, WAP, WML, Email | | | Simple phone list search for your WAP device. Uses PHP and MySQL. Also lets you dial out to your entries using wtai://wp/mc if your phone supports it. No WMLscript. Categories : PHP, MySQL, WAP | | | Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP, PHP, HTML, PDF, Excel | | | Retrieve text from table and email to your e-
address in pipe delimited format. Categories : PHP, MySQL | | | Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs. Categories : Databases, PHP, MySQL, Complete Programs | | | A PHP function to encrypt and decrypt a number or string or a combination of the two. Categories : PHP, Encryption, Security | | | Using $PHP_AUTH_USER and $PHP_AUTH_PW to authenticate. Categories : Authentication, PHP | | | file class , uploade file , download file already uploaded on another website Categories : PHP, PHP Classes, Filesystem, Web Services | | | Authorize.net AIM Interface Class v1.0.0 Categories : PHP, PHP Classes, Ecommerce, Payment Gateways | | | Cut your MySQL Connections to 1 line of code Categories : PHP, Beginner Guides, Databases, MySQL | | | A simple class with some HTML output functions that would come in handy for consistent page layout etc. Categories : PHP, PHP Classes, HTML and PHP, HTML, Navigation | | | recode -- Recode a string according to a recode request Categories : PHP, PHP Functions, Recode | |
|
|
|