CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Enumerate Parameters for SERVER, SESSION etc

Print topic Send  topic

Author Message

Posts: 272
Posted: 04/11/2008, 7:39 PM

Would you like a handy check of the parameters being stored in $_SESSION, $_COOKIE, $_SERVER etc? The code for this was provided by DonP in the PHP forum at

Add a Label to a page, change the Content property (under Data) from Text to HTML, then Add Code to the Server > Before Show event as follows:

$s = "<h4>Server Values</h4>";  
foreach($_SERVER as $key=>$value)  
$s = $s . "<strong>" . $key . "</strong> = " . $value . "<br>";  
$s = $s . "<p><h4>Session Values</h4>";  
foreach($_SESSION as $key=>$value)  
$s = $s . "<strong>" . $key . "</strong> = " . $value . "<br>";  
$s = $s . "<p><h4>Cookie Values</h4>";  
foreach($_COOKIE as $key=>$value)  
$s = $s . "<strong>" . $key . "</strong> = " . $value . "<br>";  
//$s = $s . "<p><h4>GD Support</h4>";  
//foreach(gd_info() as $key=>$value)  
//$s = $s . "<strong>" . $key . "</strong> = " . $value . "<br>";  
//$s = $s . "<p><h4>PHP Details</h4>";  
//foreach(phpinfo() as $key=>$value)  
//$s = $s . "<b>" . $key . "</b> = " . $value . "<br>";  

Re 'GD Support' and 'PHP Details', Don comments: "To answer a couple questions, the GD library lists info for the PHP GD library, which is used in creating and modifying images and supports truetype fonts. If it gives no values for you, then the GD library is not enabled or installed on your version of PHP. I use it all the time so this was a helpful area for me when getting it set up.

"Optionally the code will tell you anything you want to know about the PHP configuration but note that it could be a very long list! I leave it remarked out unless I really need it, which is rarely. I have not tested it with newer versions of PHP but it did work some years ago when I first wrote it."
Max | |
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.