1. 程式人生 > >PHPstorm和XAMPP開發第一個PHP程序

PHPstorm和XAMPP開發第一個PHP程序

apach pst php程序 tar chef mage ins 文件 寫代碼

1.下載安裝PHPstorm和XAMPP軟件

都是基於Windows安裝的!
1.下載安裝PHPstorm https://www.jetbrains.com/zh/phpstorm/
2.下載安裝:
https://www.apachefriends.org/index.html
兩個都是傻瓜式安裝,下一步安裝即可

  

2.配置PHPstorm文件,

技術分享圖片

技術分享圖片

技術分享圖片

3.配置XAMPP軟件

技術分享圖片

技術分享圖片

配置各個端口,有的端口可能被占用而啟動不了:

下面是我在,啟動時遇到的問題

技術分享圖片

4. 寫代碼運行:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>歡迎學習php!</title>
</head>
<body>
<p>
    <?php echo ‘hello,world!‘;?></p>

</body>
</html>

  

技術分享圖片

接下來就可以運行了!!

PHPstorm和XAMPP開發第一個PHP程序