search

Home  >  Q&A  >  body text

Cannot run php files after installing code runner

The code runner installation is completed, but the php file cannot be run, as shown in the prompt.code runner error-1.jpg

安超安超786 days ago2193

reply all(4)I'll reply

  • 安超

    安超2022-09-27 20:27:24

    When debugging php, the code is garbled. Even changing the UTF-8 below will not work.

    reply
    0
  • 安超

    安超2022-09-27 20:26:31

    After the modification, it can be debugged, but the code is garbled. [Running] php "d:\temp\temp\test.php" 'php' ���������ļ��� [Done] exited with code=1 in 0.187 seconds

    reply
    0
  • 王林

    王林2022-09-27 17:49:43

    Edit and configure the php path in setting.json, for example:

    "php.validate.executablePath":

    "D:/phpstudy_pro/Extensions/php/php7.3.4nts/ php.exe"

    reply
    0
  • 安超

    There is still garbled code: [Running] php "d:\temp\temp\temp.php" 'php' ���������ļ��� [Done] exited with code=1 in 0.145 seconds

    安超 · 2022-10-12 02:21:13
  • Cancelreply