重新安装PHP
安装php7.1
brew install php71
点击配置
配置cgi,将/usr/local/opt/[email protected]/bin 粘贴到下方输入框中,就会自动补全
新建文件,在PHPstorm 中打开
<?php /** * Created by PhpStorm. * User: lijy2 * Date: 2018/9/18 * Time: 14:05 */ echo "Hello world"; ?>
如图
结果
参考:
https://www.jianshu.com/p/abea83253671
https://blog.csdn.net/jia635/article/details/79989704
https://blog.csdn.net/m751824643/article/details/81180023
https://blog.csdn.net/jia635/article/details/79989704
https://www.jianshu.com/p/b96663689684
https://blog.csdn.net/o8Arthur8o/article/details/54710312
https://blog.csdn.net/Annanljz/article/details/91874435
原文地址:https://www.cnblogs.com/sea-stream/p/11184177.html
时间: 2024-10-05 03:10:08