Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By dtannenbaum on
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
What's a fax targetting program?
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?
You can call external program
You can call external programmes from PHP so I don't see why this should not be possible.
--
Drupal services
My Drupal services
Slower to combine
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.)
Would this slow down the syst
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";
include perl issue
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.
I can grab my session
I can grab my session data...but moved to 4.7 and am getting perl code output again...any help could be greatly appreciated...
some investigation to Drupal 7
http://perlmonks.org/index.pl?node_id=1035323