WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
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 Resources
Web Development Content
Internet Security Software
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
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

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 : 6502
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  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
Automatic global variable definer
Categories : PHP, Variables, Beginner Guides
A quick way set data from a form to a function or other places where you can lose scope.
Categories : PHP, HTML and PHP, Variables
Pageinfo: Array containing page URI, page query string (parameters), request method (GET or POST) and the complete URI
Categories : Variables, PHP Options and Info, Arrays, URLs, PHP
$REMOTE_HOST does not return a value.
Categories : PHP, Global Variables, HTTP
Gets the browser and OS from the $_SERVER['http_user_agent'] variable in PHP
Categories : PHP, HTTP, Regexps
How to force the user to download a file instead of opening it up in an controlled environment within the browser (i.e. MS Word/Adobe Acrobat)
Categories : Browsers, PHP, HTTP
Display variables when a form is submitted using POST/GET
Categories : PHP, Functions, Variables, Debugging
Functions to read a template file and fill in PHP variables. It will also fill in array variables, displaying parts of the template multiple times.
Categories : PHP, Variables, Filesystem
PHP Domain Availability Checker
Categories : PHP, Complete Programs, Regexps, HTTP, Sockets
Upload Script, Upload File Script, Input Type="File"
Categories : PHP, HTML and PHP, HTTP
A function to check if a URL exists
Categories : PHP, CURL, HTTP
A database abstraction layer for the PHP Oracle 8 module (available from PHP 3.0.5). It supports persistent connections, fetching rows into arrays, prepare/execute (variable binding) and has a new and improved error interface.
Categories : Databases, Oracle, PHP, Arrays, Variables
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
valid link!
Categories : HTTP, URLs, PHP