Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8939641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:51:52+00:00 2026-06-15T10:51:52+00:00

I am playing around with php through WAMP, trying to setup a small MySQL

  • 0

I am playing around with php through WAMP, trying to setup a small MySQL database and a webpage that can display and search through it. Everything worked for about 2 hours and I managed to make a php page that gets the rows from a given sql table and makes a html table and displays it.

All of a sudden the script stopped working. Even if I comment out or remove ALL code except the following all I get in Google Chrome is “Hello HTML world! and… ”

<html>
<body>
Hello HTML world! <br>
and... <br>
<?php
echo "Hello PHP World";
?>
</body>
</html>

The above code is in a .php file in the www folder of WAMP. As I mentioned above it was already working after the first install up until an hour ago. FWIW phpmyadmin is still working properly.

I already tried the following, in this order:
1) restart browser
2) restart computer
3) reinstall WAMP
4) clearing browser cache
5) editting “C:\Windows\System32\drivers\etc\hosts” to replace “::1 localhost”
with “127.0.0.1 localhost”
6) search this site and anything else that shows up in google search.

What could it be?

edit: Thank you for the quick replies!

I am opening the file in Chrome with the following URL “file:///C:/Program%20Files/wamp/www/new.php”

I have used it exactly the same about an hour ago and it worked perfectly back then.

If i use the “view source” option I see the content of the .php file, exactly the same as the code block in this post.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:51:53+00:00Added an answer on June 15, 2026 at 10:51 am

    If you access it it via file:///..... it will load the file without running it through the web server. So PHP will never get to run the script.

    You need to access it via http://localhost/path/to/filename.php in order for it to run through the server and have PHP do its thing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently playing around with MySQL and PHP, and I was wondering about
I am just playing around with .php and SQL, and am trying to test
I am playing around with the PHP adaptive payments library, trying to set up
I just started playing around with XSLT and PHP. However what I can't figure
I've been playing around with cURL, and am trying to send an array through
I recently just started playing around in PHP and got myself a small project/homework.
I was playing around with anonymous functions in PHP and realized that they don't
I am playing around with the Alternative PHP Cache APC, and I can't find
I'm playing around with encrypt/decrypt coding in php. Interesting stuff! However, I'm coming across
Playing around with MongoDB and NoRM in .NET. Thing that confused me - there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.