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
Submit Site
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 : The following snippet gives complete info about all submitted HTTP_POST_VARS and HTTP_GET_VARS
Categories : Variables, HTTP, PHP Update Picture
Andreas Kempf
Date : Nov 11th 1999
Grade : Be the 1st to grade this Code Example
Viewed : 4726
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Andreas Kempf
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

function FncShowHTTPVars ($array)
{ if (count($array))
{        while (list($key, $val) = each($array))
        { echo "<tr><td valign=\"top\">" . gettype($val) . "</td>";
                if (is_array($val))
                {        echo "<td>";
while (list($key2, $val2) = each($val))
echo "$key [$key2] = $val2<br>\n";
                        echo "</td>";
                }
                else
                        echo "<td>$key = $val</td>\n";
                echo "</tr>";
        }
}
}
?>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left" valign="top">
<table border="1" cellspacing="0" cellpadding="2">
<tr><th colspan=2>Values submitted via POST method:</th></tr>
<tr><th>Type</th><th align="left">Variable = Value</th></tr>
<?php FncShowHTTPVars ($HTTP_POST_VARS) ?>
</table>
</td>
<td align="left" valign="top">
<table border="1" cellspacing="0" cellpadding="2">
<tr><th colspan=2>Values submitted via GET method:</th></tr>
<tr><th>Type</th><th align="left">Variable = Value</th></tr>
<?php FncShowHTTPVars ($HTTP_GET_VARS) ?>
</table>
</td>
</tr>
</table>



Script to check values being submitted by POST or GET method from a form. This script may help diagnose what variables are being supplied by a browser to other php scripts.
Categories : HTML, Variables, Debugging, PHP, HTTP
clearing variables in php3
Categories : Variables, Arrays, PHP
How to display a PHP variable value from a selectbox without reloading the page by merging PHP and Javascript variables.
Categories : PHP, Java Script, Variables
Simple Password example
Categories : PHP, Authentication, Security, HTTP
Dump the contents of a PHP variable in html format with a recursive list of subfolders and files from a given root directory.
Categories : PHP, Directories, Variables, Arrays
translate.php - Assocciative array example, passing a reference to a function.
Categories : PHP, Arrays, Languages, Variables
This functions compares the current PHP version with a desired version. Because of the 3 tiered version system, a direct compare of a string to phpversion() will not be accurate.
Categories : PHP Configuration, PHP, Variables
getting the name of the current script and query string
Categories : PHP, Global Variables, Variables, URLs
Check parameters validity. Paranoia was designed to check the validity of the parameters that a php page will receive after a form submission. It can be used to check the variables sent by POST or GET
Categories : Algorithms, HTML and PHP, PHP, Variables
WebServerSpy checks which kind of Webserver is running, Apache, Netscape, Fasttrack, IIS, HTTP-Header, HTTP 1.0, GET, spy, WWW
Categories : HTTP, Network, Apache, PHP, Web Servers
A simple function to prevent undefined $_POST/$_GET/$_SESSION variable errors
Categories : PHP, Variables, Errors and Logging
This gets the http response headers for a given url and returns them in an assoc array. i.e. to test if a url exists: $array = get_http_headers($url); if($array[result]=200) { }
Categories : HTTP, Arrays, PHP
Remote File Saving with PHP - Download and serve a remote file. The content of the file will be updated at fixed intervals.
Categories : PHP, Filesystem, Cache, Sockets, HTTP
Gets the browser and OS from the $_SERVER['http_user_agent'] variable in PHP
Categories : PHP, HTTP, Regexps
A function to check if a URL exists
Categories : PHP, CURL, HTTP