Jump to content

Installation misconfiguration?


Recommended Posts

Hello all!

 

This is my first post. :D 

 

It has been a while since I've worked with PHP, so bear with me.  I installed WAMP on my computer recently.  Today, I typed this code in a file (named info.php) to see whether PHP was working properly on my computer:

 

<?php phpinfo(); ?>

 

However, my browser (Chrome) displays this as plain text.  I've tried it in other browsers, too, but got the same result.  I have also tried restarting my WAMPserver, but still got nothing.

 

Any idea what's going on?

 

I've looked through several forums already, and there were all sorts of ideas, such as altering php.ini files, or adding paths in different places...again, I'm relatively new to this, so if one of these is the solution, it will have to be explained to me thoroughly.  ;)

 

Thanks in advance for your help and patience!

Link to comment
https://forums.phpfreaks.com/topic/263607-installation-misconfiguration/
Share on other sites

Php is a (web) server side scripting language. In order for the web server to invoke php, you must make a http request to the web server.

 

file:///C:/wamp/www/info.php is a file system path and simply tells the browser to open the file. No web server is involved.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.