commandline php

Discussion in 'PHP/MySql' started by amber.long, Dec 23, 2009.

Thread Status:
Not open for further replies.
  1. amber.long New Member

    Member Since:
    Jun 20, 2009
    Message Count:
    29
    Likes Received:
    1
    Hello Everyone

    I have a php script that runs for about 30 minutes.

    I'm calling the script every minute from the command line using cron.

    I want multiple instances of the same script running concurrently without one interfering with the other?

    What I want to do is to be able to run a new instance each minute, and not have the new instance interfere with currently running processes.

    For example, if one process generates a random password $password, would that value be affected if another process generates it's own $password?

    Thanks in Advance
  2. SeoKungFu Active Member

    Member Since:
    Jul 10, 2009
    Message Count:
    688
    Likes Received:
    84
    Occupation:
    SEO NinJah
    I don't think it will, just because as long as they're different processes they will have their own process memory space and their own variables.
Thread Status:
Not open for further replies.

Share This Page