I am trying to call an external CGI script from PHP and return the output from that script. In essence my PHP website will do authorisation and setup some environment parame