Can Drupal interface with Perl CGI scripts? We have written a fax targetting program that is based on Perl, and would like to integrate into Drupal.

Thanks.

Comments

slack’s picture

Is that something to interface with jfax.com or something like that, or does it interface with fax machine hardware at the user's end?

killes@www.drop.org’s picture

You can call external programmes from PHP so I don't see why this should not be possible.

dtannenbaum’s picture

Would this slow down the system, since it has to process both PHP and Perl?

(The fax program would send faxes from the server side, based on information entered by the user.)

gerardryan’s picture

Would this slow down the system, since it has to process both PHP and Perl?

It shouldn't, as long as long you're not doing anything that's overly taxing with perl/the file system/or you're doing heavy I/O. Just use:

include_once "filename.pl";

anner’s picture

If I go to my perl cgi page directly, I get the correct execution, if I include it in another drupal page, I get the code output to the screen...ideas?

Then I need to be able to grab the session data from php to be able to access the user information from the db. This is supposedly easy, but any pointers to the right info would be appreciated. I'm relatively new to php. I don't have any sess_ files on my system, but I do need to grab the user id and role in my perl scripts.

anner’s picture

I can grab my session data...but moved to 4.7 and am getting perl code output again...any help could be greatly appreciated...