Home Links

Small cunnings

For viewing values of files (including $ _POST, $ _SESSION, $ _SERVER) it is possible to use simple enough command, for example,

echo LIST_CONTENTS ($ _POST)



The code of function LIST_CONTENTS is resulted in listing 1.

function LIST_CONTENTS ($array,

                                          $tab = " and nbsp; *nbsp; *nbsp; *nbsp; ",

                                          $indent=0)

{

while (list ($key, $value) = each ($array))

{

    for ($i=0; $i <$indent; $i ++) $current. = $tab;

    if (is_array ($value))

    {

      $reveal. = " $current$key: the File: <br> $current {<br> ";

      $reveal. = LIST_CONTENTS ($value, $tab, $indent+1)

                            . " $current} <br> ";

}

    else $reveal. = " $current$key => $value <br> ";

    $current = NULL;

}

return $reveal;

}



For division of values of a file use the following syntax:

LIST_CONTENTS (array $array, string $tab, int $indent);



Here: $tab - the line constant used as the tabulator, and $indent - number of tabulators for division of values.



Home Page
Compression of pages on PHP
Functions of a paginal conclusion in PHP
PHP a script for automatic definition of the coding of the text:
XML Sapiens - magic of revival of sites
XML: opportunities and prospects
The data, their performance and forms of the user interface in XML
It is a little about OPML
Protection of mail
Importation of the information from an another's site on the site in the design
The forum working with database MySQL
The main page of a forum
Paginal conclusion from tables MSSQL with help PHP
Small cunnings
We print rationally or one more way of protection of the information
Site from within
The link - business not artful
Ideology HTML
Effect bukvicy
Ways of storage of the dynamic data