Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,671 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,185 people online right now. Registration is fast and FREE... Join Now!




PHP and Perl

 
Reply to this topicStart new topic

PHP and Perl, Add perl extension to PHP

cemplukcute2003
post 27 Jun, 2007 - 11:25 PM
Post #1


New D.I.C Head

*
Joined: 15 Nov, 2006
Posts: 24



Thanked 1 times
My Contributions


Hi, i'm doing a project for my final year.
I need to call perl scripts from php files.
Can someone help me to configure this?
Because i can't find php_perl.dll inside php.ini
I'm using Apache 2.2.4 and PHP 5.2.3
Thanks...
User is offlineProfile CardPM

Go to the top of the page

psykoprogrammer
post 28 Jun, 2007 - 05:28 AM
Post #2


D.I.C Head

Group Icon
Joined: 9 Oct, 2006
Posts: 68



Dream Kudos: 50
My Contributions


The first and most obvious question is WHY. Why would you WANT to do that? Otherwise, the only way I know of to do this (and someone please correct me if I'm way off) is to call the Perl command line executable passing the script name as arguments. As an example of how to execute something from the command line.

CODE
<?php

exec("dir", $output);

print_r($output);

?>


$output will contain an array of each line of output from the executed command ("dir" in this case).

Good luck.

This post has been edited by psykoprogrammer: 28 Jun, 2007 - 05:29 AM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:04AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month