<pre>
      No query string parameters were found.
      In php.ini set:
         register_argc_argv = On
      JSON legend generator (for consumption by dlegend.js)

  Usage: php make_dlegend_json.php [params]

  Params:

    -h, --help                                  print this help

    -m <mapfile>, --map=<mapfile>               full path to .map file

    -e <executable>, --executable=<executable>  url for mapserver executable 

    --iconpath <file system path>               Path where icon images will be

                         Static icon images are only created when path is set.

    --iconurl  <http path>                      Used with iconpath. Web 

                                                location of static icon images.

    -v <varname>, --varname=<varname>           (optional) javascript variable name to assign output object to

                                                   if not specified, output is JSON string
  Examples:

    php make_dlegend_json.php -m /usr/local/www/docs/app/app.map -e http://my.server.com/cgi-bin/mapserv52 -v legend_config

    php make_dlegend_json.php --map /usr/local/www/docs/app/app.map --executable http://my.server.com/cgi-bin/mapserv52 --varname legend_config

  </pre>