下载
搭建php开发环境
-
设置phpstrom:Languages&Frameworks => PHP,
在CLI Interpreter设置PHP exectable为php的所在目录(winodws选择为php.exe文件)
- helloworld
<?php
echo "hello world";
?>
右键运行hello world OK
- 配置服务器环境
在右上角编辑配置
添加PHP Built-in Web Server
运行浏览器并访问http://localhost/
显示hello world即为ok - 配置thinkphp开发集成环境
thinkphp需要PDO PHP Extension环境在PHP代码中执行phpinfo();
函数
在浏览器中寻找php.ini,如果不存在需要在指定目录创建php.ini文件添加一下内容:
extension_dir=""
extension=ext\php_mysqli.dll
extension=ext\php_pdo_mysql.dll
将thinkphp项目文件夹内的内容copy到当前项目中
OK
网友评论