symfony-process

How to run python function in laravel with symfony process?

How to run python function in laravel with symfony process? Question: I have a python function which returns string data, code runs fine after run import mysql.connector mydb = mysql.connector.connect( host="localhost", user="root", passwd="", database="db_absensi" ) mycursor = mydb.cursor() def example(): mycursor.execute("SELECT * FROM examples) data = mycursor.fetchall() return data this is my symfony code public …

Total answers: 1