Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2009
    Thanked 0 Times in 0 Posts

    funtion to activate another php script while running..

    I have a script that runs for a few mins gathering information..

    is there a funtion i can use while the script is running to activate another script on the same hosting server?

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Thanked 637 Times in 625 Posts
    Does the 2nd script have anything to do with the 1st script? Or are you generally asking if two scripts can run simultaneously? Your question is a bit too vague to answer.

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,662 Times in 2,631 Posts
    Depends on what you need to do with it.
    If you want to run it as a new process, you can do so with using webservices or curl. If you want to make use of this as a part of your current running script, you can do so using include/require.
    Other options depending on your server / privilege include things like exec and system calls to execute a script in the background. Socketing could be a solution as well.

    So, it really comes down to what the secondary scripts purpose is in relation to the primary script.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts