Jump to content

basic php Installation/code - problem


Recommended Posts

Hi Guys,

 

I am sorry for asking this question this is very basic stuff from PHP.

I've just started learning PHP and I have no prior knowledge in web programming.

I have installed Apache 2.2 and have installed PHP version 5.3.5 Win 32 VC9. (Using Vista )

The Apache server is configured and correctly and working. I created the following php file and saved it in document root. (using notepad)

 

<?php

phpinfo();

?>

 

The above code is everything I got in my test.php file.

When I try to view it with my browser it does not run the code but it is showing me a "open", "save" message box. It seems the code is not interpreted.

Can someone please tell me why it doesnt work? and what I can do about it? Where can the problem be?

 

Thank you.

 

Kind Regards,

Viki

Link to comment
Share on other sites

Make sure notebad didn't append a .txt file extension after the .php extension. Then, find a different editor anyhow. People seem to like Notepad++ a lot, or download one of the fre IDEs like NetBeans or Eclipse.

 

Thank you, I will try it and get back.

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.