search

Home  >  Q&A  >  body text

What is the standard output function in php Cli mode?

In a command line program of a resident process, I want to write the standard output and error output to different files.
I know that error_log can be output, but I don’t know if there is another corresponding one. Function
This is my first time asking, the description may be a bit confusing, thank you

代言代言2734 days ago671

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-07-03 11:42:04

    CLI-specific constants:

    STDIN

    STDOUT

    STDERR

    Reference documentation: http://php.net/manual/zh/feat...

    reply
    0
  • Cancelreply