Hello everyone,
I need to pass some Envoronment Variables to a file (to be used to CGI scripts). I also need to run that executable and pipe all the output to my program and into a buffer.
I have been using _popen() to get the input to my program and its all been working fine, now the only difference is I need to supply that environment variable.
What functions should I look up that can do this? Can I still use _popen() and simply add a line to it before calling? Any help would be greatly appreciated.
~ Paul
PS: This is what I have tried:
set QUERY_STRING "?user=john"
PHP.exe H:\paul.php
But that doesn't work, somehow I need to tell PHP.exe theres an envoronment variable for it.