I wrote a PHP web page which calls a python file, in the python file I called a program “antiword”
antiword depends on $HOME to run, but when running python file in my browser, I found $HOME is not set, so antiword cannot be run.
How do I let my python file recognize $HOME?
I use redhat.
Thanks
You’ re looking for
putenv().