Mixing php with perl

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sal
Forum Newbie
Posts: 3
Joined: Thu Feb 12, 2004 7:27 pm

Mixing php with perl

Post by sal »

How can I send data processed by a perl script to a php script?
User avatar
dimitris
Forum Contributor
Posts: 110
Joined: Wed Jan 14, 2004 3:47 am
Location: Athens, Greece

Re: Mixing php with perl

Post by dimitris »

sal wrote:How can I send data processed by a perl script to a php script?
What exactly do you mean?
sal
Forum Newbie
Posts: 3
Joined: Thu Feb 12, 2004 7:27 pm

Post 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?
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post 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 ;)
sal
Forum Newbie
Posts: 3
Joined: Thu Feb 12, 2004 7:27 pm

Post by sal »

Thanks.
Post Reply