Passing code to python from PHP -
i have custom codechecker in python, there bigger project running in php, stores users code in mysql database.
i new python, i'm not sure how can pass code php python.
do have store file filesystem pass python? (in case many files might created, , cleanup after execution has taken care)
to expand on brad's answer, there's several options, each pros & cons...
- pipes (ie: stdin/stdout):
proc_open()
- shared memory:
shmop_open()
- af_unix family sockets:
socket_bind()
you'll want use first option read on others before making commitment.
Comments
Post a Comment