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
2010-09-17 08:46:53
I was trying to use perl for accessing system resources like webcam, then call that script in my existing php application.
awake416
2010-09-17 09:00:37
@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
2010-09-17 11:48:42
@Sinan how can i access in php
awake416
2010-09-17 12:44:59
@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
2010-09-17 12:53:46
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
2010-09-17 22:22:51