overlordofevil Posted February 27, 2008 Share Posted February 27, 2008 I am just wondering if anyone has heard or tried to run perl scripts through a php page. http://devzone.zend.com/node/view/id/1712 I have read a few articles on it and they all differ in what methods are needed to get it to work. I am unable to get it to work using the perl() function that is suppose to be part of php 5. Just seeing if anyone has tried this and made it work or if you have an idea of where to look at more info on the process. Thanks Link to comment https://forums.phpfreaks.com/topic/93370-php-running-perl-scripts/ Share on other sites More sharing options...
rhodesa Posted February 27, 2008 Share Posted February 27, 2008 I've never heard of a perl() function. I have executed Perl scripts with the normal system()/exec() functions though. Link to comment https://forums.phpfreaks.com/topic/93370-php-running-perl-scripts/#findComment-478344 Share on other sites More sharing options...
Neptunus Maris Posted February 27, 2008 Share Posted February 27, 2008 I've never heard of a perl() function. I have executed Perl scripts with the normal system()/exec() functions though. Word??? Link to comment https://forums.phpfreaks.com/topic/93370-php-running-perl-scripts/#findComment-478355 Share on other sites More sharing options...
slpctrl Posted February 27, 2008 Share Posted February 27, 2008 Try passthru() Link to comment https://forums.phpfreaks.com/topic/93370-php-running-perl-scripts/#findComment-478359 Share on other sites More sharing options...
rhodesa Posted February 27, 2008 Share Posted February 27, 2008 Ah...I see, you are trying to use this PECL extension: http://pecl.php.net/package/perl Sorry, I'm not of much use there. Is there something specific you are trying to accomplish? It may turn out you don't need that extension at all. p.s. - To my knowledge that is not a standard PHP extension, and you will have to manually enable it. Link to comment https://forums.phpfreaks.com/topic/93370-php-running-perl-scripts/#findComment-478363 Share on other sites More sharing options...
overlordofevil Posted February 27, 2008 Author Share Posted February 27, 2008 Thanks for the info I will read up on those functions. Basically what I am doing is I have a member db written in perl and I need to update it and move it to a new server, etc. Problem is the original programmer didn't leave notes on the code or a "map" of where he has the libraries hidden. I found a few virtual hosts that point to places off site but I don't have access to those files. So instead of completly reprograming the entire db interface at this time, as it is failing and I need to fix it, I wanted to use the existing perl code and just change the front end to php to call the perl scripts and functions. Then any updates I have to program can be done in php and it gives me time to update the existing perl code and change it over to php later on. so if you have suggestions on how to make this easier I would appreciate it but otherwise I will look up the functions you guys mentioned. Thanks alot Link to comment https://forums.phpfreaks.com/topic/93370-php-running-perl-scripts/#findComment-478393 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.