源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

php集成套件服务器xampp安装使用教程(适合第一次玩PHP的新手)

  • 时间:2020-10-31 12:59 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:php集成套件服务器xampp安装使用教程(适合第一次玩PHP的新手)
环境搭建 软件: xampp   下载地址:[url=https://www.apachefriends.org/zh_cn/index.html]https://www.apachefriends.org/zh_cn/index.html[/url] (建议使用迅雷下载,不然速度可能无法忍受) 1.安装 安装后打开看到如下: [img]http://files.jb51.net/file_images/article/201506/201563115139086.jpg?201553115159[/img] 2.开启服务 启动apache  Mysql服务 [img]http://files.jb51.net/file_images/article/201506/201563115207519.jpg?201553115214[/img] 3.访问地址 到浏览器输入:[url=http://127.0.0.1/xampp/splash.php]http://127.0.0.1/xampp/splash.php[/url] [img]http://files.jb51.net/file_images/article/201506/201563115225328.jpg?201553115234[/img] 看到如下界面: 说明PHP 环境已经搭建好了 [img]http://files.jb51.net/file_images/article/201506/201563115240244.jpg?201553115249[/img] 编写helloworld: 到你的安装路径:(我安装在D盘下) [img]http://files.jb51.net/file_images/article/201506/201563115259155.jpg?20155311538[/img] 打开文件夹看到 [img]http://files.jb51.net/file_images/article/201506/201563115316931.jpg?201553115324[/img] php语言默认放在htdocs目录下: [img]http://files.jb51.net/file_images/article/201506/201563115338939.jpg?201553115346[/img] 到htdocs文件夹下新建文件helloworld.php [img]http://files.jb51.net/file_images/article/201506/201563120118655.jpg?20155312126[/img] 打开helloworld.php文件输入如下代码:
[u]复制代码[/u] 代码如下:
<?php    echo "helloworld,";    //输出字符串helloworld    echo "this is my firstphp script.";          //同上    echo phpinfo();    //phpinfo()为系统函数  输出php环境信息 ?>
打开地址栏输入:127.0.0.1/helloworld.php [img]http://files.jb51.net/file_images/article/201506/201563115400070.jpg?201553115422[/img] 看到如下画面: [img]http://files.jb51.net/file_images/article/201506/201563115431764.jpg?201553115438[/img] 这就是你的第一个helloworld.
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部