Category : php

I’m trying to display a plot that is generated with plotly in python, inside my laravel application. When I execute python3.8 ../storage/app/public/rcs/line-chart.py command in my terminal from the public directory of my laravel project, the plot is displayed. However, when I send a request to my laravel application to execute the same command using symfony ..

Read more

My question is quite simple; is it possible to integrate PHP into a flask app? And if it even is possible, at what layer should this be excuted? The application layer? My idea was to have the flask app be served by Waitress for easy deployment(unlike with a WSGI server, which seems complicated). However, if ..

Read more

The php code is ”’ $input_file = "a.txt"; $source = file_get_contents($input_file); $source = gzcompress($source); file_put_contents("php.txt",$source) ”’ The python code is ”’ testFile = "a.txt" content = None with open(testFile,"rb") as f: content = f.read() outContent = zlib.compress(content) with open("py.txt","wb") as f: f.write(outContent) ”’ The python3 version is [Python 3.6.9] The php version is [PHP 7.2.17] ..

Read more

I am working on association rules algorithm for event recommendation, in Python. The final output, is in a python LIST. But now I’m stuck on how to pass the recommended event list, to a PHP Page. Should I use something related to json? Source: Python..

Read more