search

Home  >  Q&A  >  body text

When using VS code to develop PHP, why does the default path always point to the PHP installation path?

For example, if I want to open or create a new file in the current development directory:

$file=fopen("./mysql.txt","a");

But every time Do you create a new file in the installation directory D:\phpstudy_pro\Extensions\php\php7.4.3nts instead of looking for old files in the development directory to append data? I checked VScode and there seems to be no relevant settings. Please give me some advice. Thank you.

P粉002261907P粉002261907913 days ago1062

reply all(1)I'll reply

  • autoload

    autoload2022-05-16 10:11:07

    It still depends on the address of the project file you opened in vscode, right?

    reply
    0
  • Cancelreply