Visual Studio Code配置PHP开发环境 1 安装插件4个插件 1 php InstelliSence 2 PHP Debug 3 PHP Intelephense 4 PHP xdebug 2
Visual Studio Code配置PHP开发环境
1 安装插件4个插件
1 php InstelliSence
2 PHP Debug
3 PHP Intelephense
4 PHP xdebug
2 指定php的路径:文件->首选项->设置
“在setting.JSON”中编辑:将id粘贴进来,把php.exe路径写下来:
{
"workbench.colorTheme": "Default Light+",
"security.workspace.trust.untrustedFiles": "open",
"php.validate.executablePath": "php.validate.executablePath"
}
3 下载WAMP https://www.wampserver.com/
4 配置apache 端口为8089 ,wampmanger 端口为8089 更改 virtual hosts 端口conf/extra/Httpd-vhosts.conf
5 新建一个php文件,使用Visual Studio Code 打开,运行OK
6 运行--以非调试模式运行 run current script in console
7 下载Microsoft Drivers for PHP for SQL Server 安装在php的ext 目录下面
8 Mysql 数据库登陆命令 mysql -hlocalhost -uroot -p666 显示数据库:show databases;
9 CREATE TABLE tb_emp1(id INT(11),name VARCHAR(25),salary FLOAT)
来源地址:https://blog.csdn.net/woxingwoshu_1111/article/details/128935714
--结束END--
本文标题: Visual Studio Code配置PHP开发环境
本文链接: https://www.lsjlt.com/news/400620.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0