Skip to content

filipi/phpPythonPipe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpPythonPipe

Usage:

<?php
require_once("class.phpPythonPipe.php");

$pythonCode  = "import sys\n";
$pythonCode .= "print(\"Hello\")\n";

$python = new phpPythonPipe();
$python->kernelPath = ~/anaconda3/bin/python;
$python->code = $pythonCode;
$python->exec();
$python->print();
?>

About

A simple way to execute python code from PHP without using temp files

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published