When using VS code to develop PHP, why does the default path always point to the PHP installation path?
P粉002261907
P粉002261907 2022-05-15 23:41:15
0
1
984

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粉002261907
P粉002261907

reply all(1)
autoload

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!