Yes, you can call perl scripts using "exec" or "system" function just like
you will call any other system function. You will have to make sure that the
apache user (or nobody if your apache runs as nobody) has executable
permission on perl script.

So if your perl script is:

/home/nikunj/test.pl

you can call some thing like this:
<?
$cmd=  "/home/nikunj/test.pl $parameter1";
exec($cmd,$returnarray, $code);
echo $code;

?>

Regards,
Nikunj Virani

----- Original Message -----
From: "Brad Wright" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 6:30 PM
Subject: [PHP] php and Perl


Hi all,

can php call perl scripts?

I know nothing of perl, but have found a perl script that will process a
MSword document in a way that it seems php cannot.

At this stage, my knowledge of perl is limited to "it's used in web stuff
sometimes isnt it" :) but i am sure i will soon find a bit more about perl
itself elsewhere from this list.

Can i indeed use php to 'call' a perl script/function/app whatever its
called?



Cheers,

Brad


Nel vino la verità, nella birra la forza, nell'acqua i bacilli
--------------------------------------------------------------------------
In wine there is truth, in beer there is strength, in water there are
bacteria


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to