本人初学者刚接触php,安装安装了XAMPP后,出现了些有关问题,求大神帮帮忙

WBOY
Release: 2016-06-13 13:00:22
Original
774 people have browsed it

本人菜鸟刚接触php,安装安装了XAMPP后,出现了些问题,求大神帮帮忙
安装了XAMPP后,下了一个php源码案例放在D:\Xampp\htdocs下可以运行,但是我用DW自己编的php文件却不能运行,很简单的一句代码

phpinfo();
>
我是从书上看来的,是代码错误么?还是我xampp没配置好啊?
求大神解答啊
------解决方案--------------------

本帖最后由 xuzuning 于 2012-12-11 10:21:19 编辑 1、你自己的程序文件也应在 D:\Xampp\htdocs 下
2、你的代码需要以用php的短标记功能。无忧的写法
<?php<br />
phpinfo();
Copy after login

3、如需在 DW 中运行,需配置DW站点到 D:\Xampp\htdocs
------解决方案--------------------
 phpinfo();
?>
------解决方案--------------------
还没学会结贴呢
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template