运行xampp之后,apache成功连接但是php文件中输入代码:<?php
echo '<p>hello world</p>';
test ?>火狐浏览器打开之后,显示的是:hello world'; test ?> 而输入代码:<?php
phpinfo(); ?>界面为空白。http://localhost/xampp/index.php 是可以正常打开的不知道是哪里的问题。求帮助!
echo '<p>hello world</p>';
test ?>火狐浏览器打开之后,显示的是:hello world'; test ?> 而输入代码:<?php
phpinfo(); ?>界面为空白。http://localhost/xampp/index.php 是可以正常打开的不知道是哪里的问题。求帮助!
Notice: Use of undefined constant test - assumed 'test' in /Users/xxxx/index.php on line 3
第二正常
看到报错的 未定义的‘test’
<?php echo" <p> hello word</p>";
?>
<?php
#这里面都应该是php代码
#你想输出test应该这么写:
echo "test";
#而不是直接写test
?>