hello world from ' .$_ENV["HOSTNAME"] . '

'; echo '

the current php version is ' . phpversion() . '

'; echo '

TEXT = ' .$_ENV["TEXT"] . '

'; echo '

PASSWORD = ' .$_ENV["PASSWORD"] . '

'; echo '

'; if (file_exists('/secretstore/filesecret')) { echo "secret file contains: "; echo nl2br(file_get_contents( "/secretstore/filesecret" )); } else { echo "no additional secrets found!"; } echo '

'; echo '

'; if (file_exists('/pvcmount/pfile')) { echo "file contains: "; echo nl2br(file_get_contents( "/pvcmount/pfile" )); } else { echo "no other file found!"; } echo '

'; $host = $_ENV["DBHOST"]; $user = $_ENV["DBUSER"]; $pass = $_ENV["DBPASS"]; $db = $_ENV["DBNAME"]; echo '

Connecting to database at ' .$host . '

'; $con = pg_connect("host=$host dbname=$db user=$user password=$pass") or die ("Could not connect to server\n"); $query = "SELECT * FROM foo LIMIT 5"; $rs = pg_query($con, $query) or die("Cannot execute query: $query\n"); echo '

Database results:


'; while ($row = pg_fetch_row($rs)) { echo "$row[0]\n"; } echo "

"; pg_close($con); ?>