View Full Version : Calling A Perl Function From PHP
DVD Plaza
Thu 8th Feb '01, 8:37pm
I have a lot of scripts I have written in Perl, some of which I will naturally redo in PHP but some I can't just yet. To that end I'll be needing to call up some Perl routines via PHP, for example when parsing VB headers and footers at PHP code I need that to fire up a Perl header routine.
How can that be done?
fastforward
Thu 8th Feb '01, 11:09pm
I used the passthru command. like this:
passthru("perl /www/britishexpats/cgi-bin/newubbuser.cgi $uid $passwd");
Obviously this was before I got vB :)
Vinay
Mon 12th Feb '01, 12:18pm
you should be able to getaway with virtual() firstly, and since hte script is a 755 executable, you should be able to use exec() also
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.