By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,216 Members | 1,032 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,216 IT Pros & Developers. It's quick & easy.

Staring another application from PHP

P: n/a
Hi,

I have to start an application from PHP and the application should run
on its own then onwards.

I have tried with system(), exec() etc... and I am not scuccessul.

Please help me in solving this problem.

Thanks in Advance
--Venkat

May 7 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On May 7, 7:30 am, venkat.mu...@gmail.com wrote:
Hi,

I have to start an application from PHP and the application should run
on its own then onwards.

I have tried with system(), exec() etc... and I am not scuccessul.

Please help me in solving this problem.

Thanks in Advance
--Venkat
[reaches for crystal ball]
details??
code youve tried,
your OS and anything else you think might be helpful.

ps. imagine your phoning a person who hasnt spent anytime on your
computer.

May 7 '07 #2

P: n/a
ve**********@gmail.com wrote:
Hi,

I have to start an application from PHP and the application should run
on its own then onwards.

I have tried with system(), exec() etc... and I am not scuccessul.

Please help me in solving this problem.

Thanks in Advance
--Venkat
If you are using Windows, you probably need to use the PsTools method
noted here:
http://us2.php.net/manual/en/function.exec.php#59428

Once you have PsTools, you can launch an application like this:

<?php

exec('C:\PsTools\psexec.exe -accepteula -d -s notepad.exe 2>&1', $output);

?>
May 7 '07 #3

P: n/a
On May 7, 3:27 pm, vol30w60 <vol30...@yahoo.comwrote:
venkat.mu...@gmail.com wrote:
Hi,
I have to start an application from PHP and the application should run
on its own then onwards.
I have tried with system(), exec() etc... and I am not scuccessul.
Please help me in solving this problem.
Thanks in Advance
--Venkat

If you are using Windows, you probably need to use the PsTools method
noted here:http://us2.php.net/manual/en/function.exec.php#59428

Once you have PsTools, you can launch an application like this:

<?php

exec('C:\PsTools\psexec.exe -accepteula -d -s notepad.exe 2>&1', $output);

?>
you can also register a php scripts as a service, and start that.

May 7 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.