| AND OR | string words | *

information

|

server variables


server variables as in $_SERVER[] are very helpful in building scripts which run on different servers.
instead of hardcoding variables these might do the trick

this snippet will produce a list of all available server variables



full source of server variables [ line 1 - 16 ] | download server variables

1    <?php
2   $str '<?php
3       // all available server variables on '.$_SERVER['HTTP_HOST'].'
4   ';
5   // list all available server variables
6   foreach ( $_SERVER as $key=>$value )
7   {
8       $str .= '    $_SERVER[''.$key.''] = ''.$value.'';
9   ';
10   }
11   $str .= '
12   '.chr(63).'>
13   ';
14   // output the string
15   highlight_string($str);
16   ?>



316 hits by 17 users in the last 30 minutes.