parallel execution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Franco Fellico'

    parallel execution

    Hi.

    I would like to start from a PHP program another PHP program in such a
    way that the calling program can continue it's execution (after
    started the second program, both must be executed in parallel way).

    It's is possible to do this? There is someone that can suggest me how
    I can reach my objective?

    Thank you from Franco in Gaeta (Italy)
  • Mike

    #2
    Re: parallel execution

    I had looked into this a while back and found an article pretty much saying
    it's something that php is not currently capable of. However, there was
    work in progress to achieve this functionality. Check out this link



    Mike


    "Franco Fellico'" <ffellico@inwin d.it> wrote in message
    news:d8b4dc5c.0 310280238.212a1 8e1@posting.goo gle.com...[color=blue]
    > Hi.
    >
    > I would like to start from a PHP program another PHP program in such a
    > way that the calling program can continue it's execution (after
    > started the second program, both must be executed in parallel way).
    >
    > It's is possible to do this? There is someone that can suggest me how
    > I can reach my objective?
    >
    > Thank you from Franco in Gaeta (Italy)[/color]


    Comment

    • Franco Fellico'

      #3
      Re: parallel execution

      Thank you Mike. I checked the link you suggest me and I read about
      threads for PHP in the future. So for now I shoud wait for it.

      What I need exactly, is the following:

      Start manually a PHP program named flip.php wich will do something,
      then sleep for a while and after start another program (flop.php) and
      close itself. The flop.php program must do the same work of the
      flip.php program and after sleeping for a while must call again the
      flip.php program. This process will continue about indefinitely. (I
      will put a signal on a database table to stop the work of the two
      programs).

      I can't loop on the same program because it must run in a host that
      kill the programs after they have used 120 second of CPU.

      I explained you my needs with more details so if you have some idea to
      solve my problem, you can help me. As you have read I am finding a way
      to make periodically a work, but I dont like to start it manually; I
      discarded also the idea of program wich must start my process using a
      cron in a batch file from a host, because I can't put it on a host
      wich is alwais connected on Internet.

      Again many thanks. Franco.


      "Mike" <noemail@noemai l.com> wrote in message news:<bnltfj$jd a$1@nic.grnet.g r>...[color=blue]
      > I had looked into this a while back and found an article pretty much saying
      > it's something that php is not currently capable of. However, there was
      > work in progress to achieve this functionality. Check out this link
      > http://www.zend.com/zend/week/week97.php
      >
      >
      > Mike
      >
      >
      > "Franco Fellico'" <ffellico@inwin d.it> wrote in message
      > news:d8b4dc5c.0 310280238.212a1 8e1@posting.goo gle.com...[color=green]
      > > Hi.
      > >
      > > I would like to start from a PHP program another PHP program in such a
      > > way that the calling program can continue it's execution (after
      > > started the second program, both must be executed in parallel way).
      > >
      > > It's is possible to do this? There is someone that can suggest me how
      > > I can reach my objective?
      > >
      > > Thank you from Franco in Gaeta (Italy)[/color][/color]

      Comment

      • Alan Little

        #4
        Re: parallel execution

        Carved in mystic runes upon the very living rock, the last words of
        Franco Fellico' of comp.lang.php make plain:
        [color=blue]
        > I would like to start from a PHP program another PHP program in such a
        > way that the calling program can continue it's execution (after
        > started the second program, both must be executed in parallel way).
        >
        > It's is possible to do this? There is someone that can suggest me how
        > I can reach my objective?[/color]

        flip.php:
        <?
        [do stuff]
        header("Locatio n: ./flop.php");
        ?>

        flop.php:
        <?
        [do stuff]
        header("Locatio n: ./flip.php");
        ?>

        --
        Alan Little
        Phorm PHP Form Processor

        Comment

        Working...