Hi. I have a perl script that can be run at the command line to take some
HTML and do something filtering with it.
What I want to do is use it from within PHP (run the script on a var, eg:
echo fancyHtmlFilter ($inputHtml); ).
I've thought about accessing the perl script via HTTP, but then I would have
to modify the perl script to accept data from HTTP forms, which I have no
idea how to do.
I've played around quite a bit with PHP prog exec functions, but having
problems getting an output, or getting it to run the script full-stop most
of the time, and have no idea how I'm supposed to pass the HTML/data to it.
I'm running windows BTW, so that's probably half the problem.
Does anyone know what the best way to approach this is? Any good tutorials
specificly for passing/outputting data from command-line run perl scripts?
Can't seem to find anything.
Thanks, Justin.
HTML and do something filtering with it.
What I want to do is use it from within PHP (run the script on a var, eg:
echo fancyHtmlFilter ($inputHtml); ).
I've thought about accessing the perl script via HTTP, but then I would have
to modify the perl script to accept data from HTTP forms, which I have no
idea how to do.
I've played around quite a bit with PHP prog exec functions, but having
problems getting an output, or getting it to run the script full-stop most
of the time, and have no idea how I'm supposed to pass the HTML/data to it.
I'm running windows BTW, so that's probably half the problem.
Does anyone know what the best way to approach this is? Any good tutorials
specificly for passing/outputting data from command-line run perl scripts?
Can't seem to find anything.
Thanks, Justin.
Comment