Page 1 of 1

Mixing php with perl

Posted: Thu Feb 12, 2004 7:27 pm
by sal
How can I send data processed by a perl script to a php script?

Re: Mixing php with perl

Posted: Fri Feb 13, 2004 9:07 am
by dimitris
sal wrote:How can I send data processed by a perl script to a php script?
What exactly do you mean?

Posted: Fri Feb 13, 2004 9:42 am
by sal
I didn't know how specific I needed to be so I kept it general.
I have a perl application that I made a year ago for a classified site. It doesn't use a database server like MySql and now I want to enhance the application and use PHP/MySQL. What I am going to do is keep certain perl parts because they work very well. So, if data has been entered in a form and parsed and cleaned by a perl subroutine what's the easiest way to get that data passed to a php script?

Posted: Fri Feb 13, 2004 9:52 am
by markl999
Use one of the program execution functions ( http://php.net/exec ).
There's also http://phperl.sourceforge.net but i'm not sure you want to go there ;)

Posted: Fri Feb 13, 2004 10:00 am
by sal
Thanks.