WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : wap device's headers on-line on wap phone
Categories : WAP, WML, PHP Update Picture
Jiri Sedina
Date : Jul 04th 2000
Grade : 1 of 5 (graded 1 times)
Viewed : 6364
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Jiri Sedina
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

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