executing perl file from php

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
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

executing perl file from php

Post by lokesh_kumar_s »

my requirement is like this i want to execute perl file from php.
1> php file should simply call the perl script file.
2> php file should not wait for completion of perl script. after php script triggers perl file let php respond to its http request. let perl continue.
is it possible?
please specify if any other alternatives other than perl.
what i want is asynchronous program executer.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: executing perl file from php

Post by John Cartwright »

Your best bet is a combination of forking a new process using pcntl_fork()and exec() -- or system()
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

Re: executing perl file from php

Post by lokesh_kumar_s »

i want to create on child process from a process. And i want to make it as a zombie. is it possible? how?
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

Re: executing perl file from php

Post by lokesh_kumar_s »

the attachement contains the requirement. please help.
Attachments
AsynchronousRequest.JPG
AsynchronousRequest.JPG (29.19 KiB) Viewed 212 times
Post Reply