Mercurial > hg > anonet-resdb
comparison doc/ucis.ano/bgp_graph/bgp_path_list_xml.php @ 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 |
comparison
equal
deleted
inserted
replaced
30:77b07c336f91 | 31:15b952d82e4c |
---|---|
1 #!/usr/bin/php | 1 #!/usr/bin/php |
2 <?php | 2 <?php |
3 $mynode = array_key_exists('LOCALNODE',$ENV)?$ENV['LOCALNODE']:0; | 3 $mynode = array_key_exists('LOCALNODE',$_SERVER)?$_SERVER['LOCALNODE']:0; |
4 | 4 |
5 $file = STDIN; | 5 $file = STDIN; |
6 $paths = array(); | 6 $paths = array(); |
7 | 7 |
8 while (!feof($file)) { | 8 while (!feof($file)) { |