[英]My PHP file/browser just frozed
Okay i'm just starting out on PHP & i'm doing the tutorials on the PHP manuals. 好的,我只是从PHP开始,我正在做PHP手册上的教程。 After doing the first part.. which is echo hello world!, my browser just frozed?
在完成第一部分..这是回声你好世界!,我的浏览器只是呆呆的? I refresh and all it says is Hello World!
我刷新了,它说的就是“ Hello World”! Even if I echo another word.
即使我呼应另一个单词。 Why doesn't it change?
为什么没有变化?
and i'm also using Wamp for my PHP. 而且我还在PHP中使用Wamp。
Did you save the file you are displaying after each edit? 您是否保存了每次编辑后显示的文件? If you have a file that contains
<?php echo "Hello world"; ?>
如果您的文件包含
<?php echo "Hello world"; ?>
<?php echo "Hello world"; ?>
and you show it in your browser, you should see "Hello world (without the quotes). If you change hello world to "Goodbye World", you will need to save the file. If you do not save it, you will keep on getting "Hello world" <?php echo "Hello world"; ?>
并在浏览器中显示它,您应该看到“ Hello world(不带引号)。如果将hello world更改为“ Goodbye World”,则需要保存文件。如果不保存,则将继续获得“ Hello world”
If you are using WAMP then, please check that you have made proper settings in those. 如果您正在使用WAMP,请检查其中是否进行了正确的设置。 Like,
喜欢,
For any help please let us know through comments. 对于任何帮助,请通过评论告知我们。
I encounter that kind of problem some time and again, too. 我也一次又一次遇到这种问题。 Try deleting the file.
尝试删除文件。 If the browser still shows "Hello world", I know of these reasons:
如果浏览器仍然显示“ Hello world”,则说明这些原因:
Hope my (negative) experiences bring a positive result for you. 希望我的(负面)经历能为您带来积极的结果。 ;)
;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.