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
https://forums.phpfreaks.com/topic/224267-basic-php-installationcode-problem/
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.

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.