Heim  >  Fragen und Antworten  >  Hauptteil

PHP-Dateien können nach der Installation von Code Runner nicht ausgeführt werden

Die Installation des Code-Runners ist abgeschlossen, aber die PHP-Datei kann nicht ausgeführt werden. Die Eingabeaufforderung ist wie in der Abbildung dargestellt.code runner error-1.jpg

安超安超715 Tage vor2060

Antworte allen(4)Ich werde antworten

  • 安超

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

    调试php时乱码..改下方的UTF-8也不行。

    Antwort
    0
  • 安超

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

    改完后,可以调试,但乱码 [Running] php "d:\temp\temp\test.php" 'php' �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ��� [Done] exited with code=1 in 0.187 seconds

    Antwort
    0
  • 王林

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

    在setting.json中编辑配置php路径,比如:

    "php.validate.executablePath":

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

    Antwort
    0
  • 安超

    还是存在乱码: [Running] php "d:\temp\temp\temp.php" 'php' �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ��� [Done] exited with code=1 in 0.145 seconds

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