The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cpu usage for idle php script

Discussion in 'General Discussion' started by walt, Feb 10, 2016.

  1. walt

    walt Member

    Joined:
    Oct 30, 2015
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Houston, Tx
    cPanel Access Level:
    Website Owner
    Hello, I have a php script that runs from a terminal window. Most of the time it's waiting for a user selection:
    Code:
    $selection = stream_get_line(STDIN, 1024, PHP_EOL);
    Is the script using up cpu time, or is counted as cpu time, while waiting for the user input?

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You will receive more feedback to this type of question on a forum dedicated to discussions of PHP itself. For example, I found the following third-party URL that you may find helpful:

    Stopping while waiting for user input

    Thank you.
     
Loading...

Share This Page