I have a python flask application, but I have some old php scripts that I would want to reuse.
I am trying to parse some data from my flask application. When accessing it, company login password is needed, so "curl" in php wouldn't really work. So I am thinking of parsing the data to the php scripts through render_template.
Is it possible to do something like this :
data= <some data>
@app.route('/test')
def test():
return render_template('my_php_scripts.php',input_data=data)
While in my php script, I do:
<?php
$DataString=**{{input_data}}**
?>
If not, what would be a good way to do it?