Python Forum
read python and php from a file and copy them to their own files to execute
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
read python and php from a file and copy them to their own files to execute
#11
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?
Declare variables, not war. **hand** **biggrin**
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Locally run an APK and execute functions using Python KovyJ 0 489 Jan-23-2025, 05:21 PM
Last Post: KovyJ
  How to read a file as binary or hex "string" so that I can do regex search? tatahuft 3 1,217 Dec-19-2024, 11:57 AM
Last Post: snippsat
  Read TXT file in Pandas and save to Parquet zinho 2 1,322 Sep-15-2024, 06:14 PM
Last Post: zinho
  Pycharm can't read file Genericgamemaker 5 1,653 Jul-24-2024, 08:10 PM
Last Post: deanhystad
  Python is unable to read file Genericgamemaker 13 4,027 Jul-19-2024, 06:42 PM
Last Post: snippsat
  Copy and Paste Files - Command MicheliBarcello 2 930 Jun-25-2024, 05:04 AM
Last Post: rodiongork
  Connecting to Remote Server to read contents of a file ChaitanyaSharma 1 3,398 May-03-2024, 07:23 AM
Last Post: Pedroski55
  Why is the copy method name in python list copy and not `__copy__`? YouHoGeon 2 1,376 Apr-04-2024, 01:18 AM
Last Post: YouHoGeon
  Copy Paste excel files based on the first letters of the file name Viento 2 1,621 Feb-07-2024, 12:24 PM
Last Post: Viento
  Recommended way to read/create PDF file? Winfried 3 5,135 Nov-26-2023, 07:51 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020