Python Forum

Full Version: read python and php from a file and copy them to their own files to execute
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
It should be working. The source looks fine to me. I'm running it with "python pyp.py ./test.pyp" from my home directory. My index.py file only has the shebang and the php file is fine. I can execute the python file from the web page using php. If I manually write in the python file it gets executed. I pass variables from php to python with arguments and print statements from python to php. I'm not sure what's wrong. It also seems that I can't use if/else-if/else statements in php. I've double checked the proper usage and it just does not want to work so maybe it's external issues effecting it?
Pages: 1 2