PHP tutorial : Passing PHP variable to Pyton (file.py)

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=FqBAxAKDjnY



Category:
Tutorial
Duration: 1:29
41,491 views
275


How to passing php variable into a pyton .py (very easy..bro).

-------

php :
shell_exec("python file.py $param1 $param2")

python :
import sys

x = sys.argv[1]
y = sys.argv[2]




Other Videos By Ambar Hasbiyatmoko


2017-01-19Screen Recorder + Webcam with Vokoscreen in Ubuntu 16.04
2017-01-16How to Convert coordinate (lat,lng) to TILE (x,y) in google maps
2017-01-12Codeigniter problem : No input file specified. when open the page
2017-01-12Ubuntu 16.04 problem after reinstall : low screen resolution and no internet connection
2017-01-09Bucardo : (Basic Tutorial) Postgresql Replication Master to master in 1 server Centos7
2017-01-09Error Install Flash Plugin in Ubuntu 16 04 : adobe flashplugin amd64 404 Not Found
2017-01-08Codeigniter - error when Redirect URL(Not Found) in Ubuntu 16.04
2017-01-08Disable Recent History in Ubuntu 16.04
2017-01-07Easy Install QGIS in Ubuntu 16.04 LTS(Xenial Xerus)
2017-01-06Bucardo problem : Can't locate ExtUtils MakeMaker.pm in @INC when trying to install bucardo
2017-01-05PHP tutorial : Passing PHP variable to Pyton (file.py)
2017-01-05PHP tutorial : run Python from PHP in Ubuntu
2017-01-04PHP problem - imagecreatefrompng error : the localhost page isn't working
2017-01-02PHP problem : mkdir doesn't work using shell_exec()
2016-12-28Codeigniter problem - Blank screen when connect with postgresql
2016-12-27Centos 7 : user is not allowed to run sudo on localhost. This incident will be reported
2016-12-26Highcharts Tutorial : Adding line of highcarts and custom line color
2016-12-23Centos 7 - Run inotify on startup
2016-12-22Codeigniter+Postgresql+Centos: Unable to connect to your database server using the provided settings
2016-12-20Stuck on loading centos linux 7 & get problem 'A start job is running for etc,rc.local'
2016-12-19Install virtualbox on ubuntu 16.04 LTS



Tags:
python
php
passing
parameter
tutorial
file
script
example
ubuntu
linux
browser