Page 1 of 1
Easiest way to pass data between a perl and php script
Posted: Mon Nov 27, 2006 4:28 pm
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?
Posted: Mon Nov 27, 2006 5:00 pm
by Christopher
I would think either GET/POST values or database records would be the most straightforward methods.
Posted: Mon Nov 27, 2006 5:16 pm
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.
Posted: Mon Nov 27, 2006 7:16 pm
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.
Posted: Mon Nov 27, 2006 7:32 pm
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.
Posted: Tue Nov 28, 2006 10:43 am
by RobertGonzalez
How do they not work?
Posted: Tue Nov 28, 2006 2:22 pm
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.