CodeIgniter Forums
Calling a Python Script from Codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Calling a Python Script from Codeigniter (/showthread.php?tid=67773)



Calling a Python Script from Codeigniter - fnbhns - 04-07-2017

Dear All,

I would like to call a Python script from my codeigniter file, that is I am using XAMPP with apache server besides this Python with Canopy-jupyter. Want to display the Python result into my html web site. I used the following code in my controller, Its display the python script that is the code i written in python. But not the Result of python script.


Code:
exec('C:/py/test.ipynb');