Mixing Python and PHP?

I have some Python scripts that I run on my desktop now to cut files. I want to place them on the Internet and write a simple interface in PHP where the user uploads the file and is passed as an argument to the python script on the web server, and it is written out in pieces and the user can reload the pieces.

I know a decent amount of PHP, but can't see:

  • How to mix PHP and Python programmatically

  • Is it possible to have a webpage in python that can just call a python script? Is it possible to have a GUI page that looks like zzz.com/text.py as an example

+3
source share
1 answer
  • http- - PHP Python. PHP-, Python, PHP. Exec()

  • , . Djangobook - , . , python cgi apache.

, , Python, , PHP. , , , , PHP- Python, .

, , ?

+9
source

Source: https://habr.com/ru/post/1774737/


All Articles