Okay i'm just starting out on PHP & i'm doing the tutorials on the PHP manuals. After doing the first part.. which is echo hello world!, my browser just frozed? I refresh and all it says is Hello World! Even if I echo another word. Why doesn't it change?
and i'm also using Wamp for my PHP.
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"; ?>
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"
If you are using WAMP then, please check that you have made proper settings in those. 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:
Hope my (negative) experiences bring a positive result for you. ;)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.