changeset 31:15b952d82e4c draft

PHP gets the environment in $_SERVER, not $ENV.
author Nick <nick@somerandomnick.ano>
date Fri, 11 Jun 2010 09:22:45 +0000
parents 77b07c336f91
children d44b9afb4a25
files doc/ucis.ano/bgp_graph/bgp_path_list_xml.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/ucis.ano/bgp_graph/bgp_path_list_xml.php	Fri Jun 11 09:05:23 2010 +0000
+++ b/doc/ucis.ano/bgp_graph/bgp_path_list_xml.php	Fri Jun 11 09:22:45 2010 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/php
 <?php
-$mynode = array_key_exists('LOCALNODE',$ENV)?$ENV['LOCALNODE']:0;
+$mynode = array_key_exists('LOCALNODE',$_SERVER)?$_SERVER['LOCALNODE']:0;
 
 $file = STDIN;
 $paths = array();