Dear team,

How to get the process id for the particular file in php?

for example
============
To get the process id in linux we use
ps -ef | grep "message.php"


Thank you,

With Regards,
Prem

Try the shell_exec function.

But use it with caution.

R.

Thank you blocblue,

i have used the below code to get the process id .

pgrep -u root -f "filename"


Thank you,

Regards,
Prem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.