帮助 - 确实对你来说是小菜一碟 [英] HELP - sure is a piece of cake for you
问题描述
大家好,
我已在我的电脑上安装了apache服务器,只需在本地编辑
php文件。
一切正常,我可以看到我的index.php文件。
然而,问题是:
忽略<?php?>内的所有内容。
i甚至用最简单的htmk代码进行回波检查。
我会复制它,所以你看我没做错:
>
< html>
< head>< / head>
< body>
撰写 http://127.0.0.1/index.php时可以看到这一行在
地址栏上但bla bla不是。
<?php
echo" bla bla" ;;
?>
< / body>
< / html>
Heeeeeeeeeeeeelp !我不明白为什么会这样:(
感谢你的快速反应。有一些事情可以解决。
Efry
Hello all,
I have installed apache server on my computer and all it takes to edit
php files locally.
everything works, and i can see my index.php file .
however, the problem is:
everything which is inside the <?php ?>is ignored.
i have even done an echo check with the simplest htmk code.
I''ll copy it so you see i''ve done nothing wrong:
<html>
<head></head>
<body>
this line can be seen when writing http://127.0.0.1/index.php on the
address bar but the bla bla is not.
<?php
echo "bla bla";
?>
</body>
</html>
Heeeeeeeeeeeeelp! I can''t figure out why is that :(
Appreciate your rapid response. got some things to work on .
Efry
推荐答案
" greenflame"< dy ********** @ gmail.comwrote in message
新闻:11 ********************* @ m79g2000cwm.googlegro ups.com ...
"greenflame" <dy**********@gmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
大家好,
我已经在我的电脑上安装了apache服务器,只需要在本地编辑
php文件。
一切正常,我可以看到我的index.php文件。
然而,问题是:
忽略了<?php?>内的所有内容。
i甚至用最简单的htmk代码进行回波检查。
我会复制它,所以你看我没做错:
< html>
< head>< / head>
< body>
写
地址栏上的ttp://127.0.0.1/index.phptarget =_ blank> http://127.0.0.1/index.php 但bla bla是没有。
<?php
echo" bla bla";
?>
< / body>
< / html>
Heeeeeeeeeeeeelp!我不明白为什么会这样:(
感谢你的快速反应。有一些事情可以解决。
Efry
Hello all,
I have installed apache server on my computer and all it takes to edit
php files locally.
everything works, and i can see my index.php file .
however, the problem is:
everything which is inside the <?php ?>is ignored.
i have even done an echo check with the simplest htmk code.
I''ll copy it so you see i''ve done nothing wrong:
<html>
<head></head>
<body>
this line can be seen when writing http://127.0.0.1/index.php on the
address bar but the bla bla is not.
<?php
echo "bla bla";
?>
</body>
</html>
Heeeeeeeeeeeeelp! I can''t figure out why is that :(
Appreciate your rapid response. got some things to work on .
Efry
只需通过我的服务器运行你的代码就可以了。你运行了吗?
phpinfo();
验证你的设置?看来你可能有配置问题。
Phil
Just ran your code through my server and it all works ok. Did you run:
phpinfo();
to verify your setup? It would appear you may have a config issue.
Phil
hi ,菲尔,谢谢你的快速反应。
mmmm。说实话,我很高兴有更多的指示,因为我有
不知道使用这个函数是什么或者是什么.phpinfo();
以及通过服务器运行什么是什么意思?只需改写,
please 。
:D
谢谢
Efry
PTM×?×a×?:
Phil, and thank you for your rapid response.
mmmm. to be honest, I''d be glad to have more instructions since I have
no idea what or hw to use this function. phpinfo();
and what does it mean to run something through a server? just rephrase,
please.
:D
thank you
Efry
PTM ×?×a×?:
" greenflame"< dy ********** @ gmail.comwrote in message
news:11 *********************@m79g2000cwm.googlegro ups.com ...
"greenflame" <dy**********@gmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
大家好,
我已经在我的电脑上安装了apache服务器,只需要在本地编辑
php文件。
一切正常,我可以看到我的index.php文件。
然而,问题是:
里面的所有内容<? php?>被忽略。
i甚至用最简单的htmk代码进行了回波检查。
我会复制它,所以你看我没做什么错误:
< html>
< head>< / head>
< body> ;
在撰写 http:
地址栏上有//127.0.0.1/index.php ,但bla bla不是。
<?php
echo" bla bla";
?>
< / body>
< / html>
Heeeeeeeeeeeeelp!我不明白为什么会这样:(
感谢你的快速反应。有一些事情要处理。
Efry
Hello all,
I have installed apache server on my computer and all it takes to edit
php files locally.
everything works, and i can see my index.php file .
however, the problem is:
everything which is inside the <?php ?>is ignored.
i have even done an echo check with the simplest htmk code.
I''ll copy it so you see i''ve done nothing wrong:
<html>
<head></head>
<body>
this line can be seen when writing http://127.0.0.1/index.php on the
address bar but the bla bla is not.
<?php
echo "bla bla";
?>
</body>
</html>
Heeeeeeeeeeeeelp! I can''t figure out why is that :(
Appreciate your rapid response. got some things to work on .
Efry
只需通过我的服务器运行你的代码就可以了。你运行了吗?
phpinfo();
验证您的设置?看起来您可能有配置问题。
Phil
Just ran your code through my server and it all works ok. Did you run:
phpinfo();
to verify your setup? It would appear you may have a config issue.
Phil
这可能取决于您设置服务器的方式/位置。我正在运行
Apache,所以我将文件放入:
Apache_root / htdocs
如果浏览 http:// localhost ,你应该得到一个
目录的列表(或索引页面,如果有一个目录)。
phpinfo()函数将给出一个列表您目前使用PHP的所有扩展和
配置选项。如果简单:
<?phpinfo();?>
程序对你不起作用,你可能错误地配置了Apache / PHP
(非常可能,设置它很困难)前几个
次)
It probably depends on how / where you set up your server. I''m running
Apache, so I put files in:
Apache_root / htdocs
If you browse to http://localhost, you should get a listing of that
directory (or an index page, if there is one present).
The phpinfo() function will give a listing of all the extentions and
configuration options you currently have with PHP. If a simple:
<? phpinfo(); ?>
program doesn''t work for you, you''ve probably configured Apache / PHP
incorrectly (very likely, it''s quite difficult to set up the first few
times)
这篇关于帮助 - 确实对你来说是小菜一碟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!