tags:

views:

71

answers:

3

I am interested in knowing the ways we can call/run Perl scripts in PHP.

+2  A: 

Just like any other executable.

But avoid it, it's very inefficient. What do you want to achieve by doing it?

reinierpost
I was trying to use perl for accessing system resources like webcam, then call that script in my existing php application.
awake416
@awake416 Whose webcam? If there is a webcam attached to the server and you can access it using Perl, then it should not be difficult to access it in PHP as well.
Sinan Ünür
@Sinan how can i access in php
awake416
@awake416 I don't know. Just like I do not know how you are accessing it in Perl. All I am saying is, if you can do it in one, you should be able to do it in the other language as well.
Sinan Ünür
Conversely, you can write your whole website in Perl using mod_perl to avoid the overhead of invoking the Perl interpreter on each call.
reinierpost
+2  A: 

You can make use of

codaddict
A: 

Use something like

 system("/your/kewl/script.pl");
tex