php helloworld
环境搭建
软件:
xampp 下载地址:http://www.php100.com/html/download/server/2010/0304/4048.html
1.安装
安装后打开看到如下:
2.开启服务
启动apache Mysql服务
ru
3.访问地址
到浏览器输入:http://127.0.0.1/xampp/splash.php
看到如下界面: 说明PHP 环境已经搭建好了
编写helloworld:
到你的安装路径:(我安装在D盘下)
打开文件夹看到
php语言默认放在htdocs目录下:
到htdocs文件夹下新建文件helloworld.php
打开helloworld.php文件输入如下代码:
<?phpecho "helloworld,"; //输出字符串helloworld
echo "this is my firstphp script."; //同上
echo phpinfo(); //phpinfo()为系统函数 输出php环境信息
?>
打开地址栏输入:127.0.0.1/helloworld.php
看到如下画面:
这就是你的第一个helloworld.
[PHP] php使用phpoffice/phpexcel 生成excel文件php生成excel并下载
worldpress服务器硬件配置 new world 服务器
PHP配置指令作用域说明(PHP,INI,PERDIR、PHP,INI,SYSTEM、PHP,INI,USER、PHP,INI,ALL)php 作用域
Windows 10 + Android Studio 2.1 + HelloWorld程序windows安装android studio
PHP7.0~PHP7.1~PHP7.2~PHP7.3~PHP7.4新特性php 7.4
PHP7.0~PHP7.1~PHP7.2~PHP7.3~PHP7.4新特性php 7.2 7.3
PHP之——在WAMPSERVER下增加多版本的PHP(PHP5.3,PHP5.4,PHP5.5)支持。wampserver打开php项目
PHP之——在WAMPSERVER下增加多版本的PHP(PHP5.3,PHP5.4,PHP5.5)支持。wampserver开发php网页
云服务器 nodejs hello world 云服务器ecs入门
How to Uninstall (or Reinstall) Windows 10’s Ubuntu Bash Shellplease uninstall and reinstall the