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

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.

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.

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.