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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.