can not run .php file directly...
Posted: Fri Jun 05, 2009 2:03 pm
I am new to PHP. I just installed IIS 5.1 and PHP 4.2.3 on Windows XP.
I created a new file 'myfirst.php' in 'C:\Inetpub\wwwroot' with code -
Now, when I enter 'http://localhost/myfirst.php' in the browser, the output is - 'Hello' in the browser.
But, when I double-click the file icon the code is displayed as it is in the browser.
How can I get the correct output? Is there some problem in linking with IIS? Please help.
I created a new file 'myfirst.php' in 'C:\Inetpub\wwwroot' with code -
Code: Select all
<?php echo "Hello"; ?>But, when I double-click the file icon the code is displayed as it is in the browser.
How can I get the correct output? Is there some problem in linking with IIS? Please help.