Easiest way to pass data between a perl and php script

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
a94060
Forum Regular
Posts: 543
Joined: Fri Feb 10, 2006 4:53 pm

Easiest way to pass data between a perl and php script

Post by a94060 »

I know it may sound like i have posted this a million times. But,now my question is,what do you think is the best and easiest way that i could pass something from a php to a perl script? When i mean easy,i mean the way were i do not need to install many modules and i can get a value straight from a php script. What would be your ideas on how to tackle this?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I would think either GET/POST values or database records would be the most straightforward methods.
(#10850)
User avatar
a94060
Forum Regular
Posts: 543
Joined: Fri Feb 10, 2006 4:53 pm

Post by a94060 »

is this possible on perl? Or do i need to install some nonsense plugin/modules? Those are being a pain in my rear right now. is there any simpler and secure way? my main goal is to pass sometype of token between the php page to the perl to know that the person has visited the php page before the perl one.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Just make sure perl is on your server (which in 99% of cases it is). You can connect to databases almost the same way as in PHP (I think using Perl::DBI) or you can pass POST/GET vars to it similar to PHP.
User avatar
a94060
Forum Regular
Posts: 543
Joined: Fri Feb 10, 2006 4:53 pm

Post by a94060 »

well,im pretty sure i have it installed. i have the mod_perl and perl installed and everything. Some of the scripts work but like some dont work. I copy perfect examples from trusted places liek oreilly.com. i install all the packages and stuff and it still doesnt work. This is starting to p!55 me off now.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

How do they not work?
User avatar
a94060
Forum Regular
Posts: 543
Joined: Fri Feb 10, 2006 4:53 pm

Post by a94060 »

well,they didnt work before,but now i thikn they are good, when i try to do the things which i want to, for example,the PHP::Sessions doesnt work for me,i install everything exactly how it says and then try the example. that doesnt work, im thinknig the best way is to store a db value.
Post Reply