How to retrieve PHP exec() error responses?

后端 未结 7 1618
孤街浪徒
孤街浪徒 2020-12-15 03:42

Below is the command I tried executing, without success:

exec(\'ln -s \' . PLUGIN_DIR . \'/.htaccess \' . ABSPATH . \'/.htaccess\');

When y

7条回答
  •  被撕碎了的回忆
    2020-12-15 03:50

    this worked for me: Append 2>&1 to the end of your command.

    Seen here: php exec() not returning error message in output when executing svn command

    Cheers

提交回复
热议问题