Staring another application from PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • venkat.muvva@gmail.com

    Staring another application from PHP

    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

  • shimmyshack

    #2
    Re: Staring another application from PHP

    On May 7, 7:30 am, venkat.mu...@gm ail.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.

    Comment

    • vol30w60

      #3
      Re: Staring another application from PHP

      venkat.muvva@gm ail.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:


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

      <?php

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

      ?>

      Comment

      • shimmyshack

        #4
        Re: Staring another application from PHP

        On May 7, 3:27 pm, vol30w60 <vol30...@yahoo .comwrote:
        venkat.mu...@gm ail.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:\PsTool s\psexec.exe -accepteula -d -s notepad.exe 2>&1', $output);
        >
        ?>
        you can also register a php scripts as a service, and start that.

        Comment

        Working...