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
  Why is the copy method name in python list copy and not `__copy__`? YouHoGeon 2 271 Apr-04-2024, 01:18 AM
Last Post: YouHoGeon
  Copy Paste excel files based on the first letters of the file name Viento 2 439 Feb-07-2024, 12:24 PM
Last Post: Viento
  Recommended way to read/create PDF file? Winfried 3 2,887 Nov-26-2023, 07:51 AM
Last Post: Pedroski55
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,452 Nov-09-2023, 10:56 AM
Last Post: mg24
  read file txt on my pc to telegram bot api Tupa 0 1,121 Jul-06-2023, 01:52 AM
Last Post: Tupa
  parse/read from file seperated by dots giovanne 5 1,112 Jun-26-2023, 12:26 PM
Last Post: DeaD_EyE
  Formatting a date time string read from a csv file DosAtPython 5 1,283 Jun-19-2023, 02:12 PM
Last Post: DosAtPython
  How do I read and write a binary file in Python? blackears 6 6,605 Jun-06-2023, 06:37 PM
Last Post: rajeshgk
  Read csv file with inconsistent delimiter gracenz 2 1,200 Mar-27-2023, 08:59 PM
Last Post: deanhystad
  Create new folders and copy files cocobolli 3 1,459 Mar-22-2023, 10:23 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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