Results 1 to 6 of 6

Thread: How to execute a simple php script ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private Whiskas's Avatar
    Join Date
    Jan 2015
    Posts
    84
    Thanks
    69
    Thanked 20 Times in 17 Posts
    You can add "&" at the end of system() parameter to execute php script in background.

    If the script has long execution time, it can lag the server.

    PHP Code:
    system("/usr/bin/php script.php &"); 

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by Whiskas View Post
    You can add "&" at the end of system() parameter to execute php script in background.

    If the script has long execution time, it can lag the server.

    PHP Code:
    system("/usr/bin/php script.php &"); 
    I like it
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. The Following User Says Thank You to IzNoGoD For This Useful Post:

    Whiskas (5th January 2017)

Posting Permissions

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