php-windows Digest 18 Sep 2008 01:17:44 -0000 Issue 3523

Topics (messages 29035 through 29036):

SuperGlobals
        29035 by: Varuna Seneviratna

How the some values end up in the SuperGlobal Arrays?
        29036 by: Varuna Seneviratna

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
When I run the following script, the values for $GLOBALS and $_SERVER is
returned.If they are SuperGlobals why aren't they returned


<html>
    <head>
        <title>The PHP Info</title>
    <head>
    <body bgcolor="#ffffff">
        <table border="1">
            <tr><td colspan="2"><font face="Arial, Helvetica, sans-serif"
size="-1">
                Displaying predefined <b>Super Global Variabals</b>
                </font></td>
            </tr>
            <tr>
                <td width="40%"><font face="Arial, Helvetica, sans-serif",
size="-1">
                    Globals-<b>$GLOBALS</b>
                </font></td>
                <td width="60%"><font face="Arial, Helvetica, sans-serif"
size="-1">
                <?php
                    echo "<pre>";
                       print_r($GLOBALS);
                    echo "<pre>";

                ?>
                </font></td>
            </tr>
            <tr>
                <td width="40%"><font face="Arial, Helvetica, sans-serif",
size="-1">
                    Server-<b>$_SERVER</b>
                </font></td>
                <td width="60%"><font face="Arial, Helvetica, sans-serif"
size="-1">
                <?php
                    echo "<pre>";
                       print_r($_SERVER);
                    echo "<pre>";

                ?>
                </font></td>
            </tr>
            <tr>
                <td width="40%"><font face="Arial, Helvetica, sans-serif",
size="-1">
                    Get-<b>$_GET</b>
                </font></td>
                <td width="60%"><font face="Arial, Helvetica, sans-serif"
size="-1">
                <?php
                    echo "<pre>";
                       print_r($_GET);
                    echo "<pre>";

                ?>
                </font></td>
            </tr>
            <tr>
                <td width="40%"><font face="Arial, Helvetica, sans-serif",
size="-1">
                    POST-<b>$_POST</b>
                </font></td>
                <td width="60%"><font face="Arial, Helvetica, sans-serif"
size="-1">
                <?php
                    echo "<pre>";
                       print_r($_POST);
                    echo "<pre>";

                ?>
                </font></td>
            </tr>
            <tr>
                <td width="40%"><font face="Arial, Helvetica, sans-serif",
size="-1">
                    Cookie-<b>$_COOKIE</b>
                </font></td>
                <td width="60%"><font face="Arial, Helvetica, sans-serif"
size="-1">
                <?php
                    echo "<pre>";
                       print_r($_COOKIE);
                    echo "<pre>";

                ?>
                </font></td>
            </tr>
            <tr>
                <td width="40%"><font face="Arial, Helvetica, sans-serif",
size="-1">
                    Files-<b>$_FILES</b>
                </font></td>
                <td width="60%"><font face="Arial, Helvetica, sans-serif"
size="-1">
                <?php
                    echo "<pre>";
                       print_r($_FILES);
                    echo "<pre>";

                ?>
                </font></td>
            </tr>
            <tr>
                <td width="40%"><font face="Arial, Helvetica, sans-serif",
size="-1">
                    Request-<b>$_REQUEST</b>
                </font></td>
                <td width="60%"><font face="Arial, Helvetica, sans-serif"
size="-1">
                <?php
                    echo "<pre>";
                       print_r($_REQUEST);
                    echo "<pre>";

                ?>
                </font></td>
            </tr>
            <tr>
                <td width="40%"><font face="Arial, Helvetica, sans-serif",
size="-1">
                    Session-<b>$_SESSION</b>
                </font></td>
                <td width="60%"><font face="Arial, Helvetica, sans-serif"
size="-1">
                <?php
                    echo "<pre>";
                       print_r($_SESSION);
                    echo "<pre>";

                ?>
                </font></td>
            </tr>









        </table>



    </body>


</html>

Varuna

-- 
Varuna Seneviratna
No 514 Udumulla Road
Battaramulla
Sri Lanka
Tel : 011-2888620
Mobile:0715617141

--- End Message ---
--- Begin Message ---
How the some values end up in the SuperGlobal Arrays?
What is the sequential order of this event?

When an HTTP request is sent to the web server, what does the server do to
send the variables to the SuperGlobal Arrays?

Thanks Varuna

-- 
Varuna Seneviratna
No 514 Udumulla Road
Battaramulla
Sri Lanka
Tel : 011-2888620
Mobile:0715617141

--- End Message ---

Reply via email to