0

I have a small Python 3.x script with a variable:

a = 10

and want to pass the variable to a PHP script in the same folder. What code is needed to use that variable in PHP?

4
  • Pass it as a command line argument when running the PHP script, then use $argv in the PHP script to access it. Commented May 22, 2022 at 22:54
  • Does this answer your question? passing value from python to php Commented May 22, 2022 at 23:06
  • No, absolutely not. I tried that before and the only answer I understand there uses urllib2 and that's not part of Python 3.x as far as I understand. Commented May 22, 2022 at 23:16
  • Does this work?stackoverflow.com/questions/89228/… Commented May 23, 2022 at 3:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.