Executing a Perl script from PHP file and storing its result

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sheikhmdirfan
Forum Newbie
Posts: 22
Joined: Tue Jan 20, 2009 12:21 am

Executing a Perl script from PHP file and storing its result

Post by sheikhmdirfan »

Hello everyone,

I have a php file from which i want to run a Perl script.

I would like to know how this can be done and is there any setting that i need to change or do i need to download and install any package or anything.
If yes then where i have to install that or where i have to keep the downloaded package.


Thanks in advance...
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Executing a Perl script from PHP file and storing its result

Post by jackpf »

I believe you can just run it with shell_exec(), or backticks.
sheikhmdirfan
Forum Newbie
Posts: 22
Joined: Tue Jan 20, 2009 12:21 am

Re: Executing a Perl script from PHP file and storing its result

Post by sheikhmdirfan »

Can u show me an example please..
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Executing a Perl script from PHP file and storing its result

Post by jackpf »

Post Reply