Page 1 of 1
Can't open Php file
Posted: Mon Feb 22, 2010 2:41 pm
by ying06
I'm totally new about PHP. My machine is server 2003 and PHP 5.0 was installed. However, when I tried to open a .php file in window Explorer, I was prompted as do you want open, save .. the file. If I choose open file, nothing happened.
It seems the machine doesn't recognize the .php at all. What configuration I should do now ?
Re: Can't open Php file
Posted: Mon Feb 22, 2010 2:50 pm
by AbraCadaver
You need to install a web server with PHP and then browse to your file in IE or another browser using
http://localhost/path/to/my/file.php. You can download a WAMP (Windows, Apache, MySQL, PHP) stack and install it easily.
Other than that you can run the PHP from the CLI. Start > Run > cmd
C:\> \path\to\php.exe \path\to\my\file.php
Re: Can't open Php file
Posted: Mon Feb 22, 2010 3:31 pm
by ying06
Thank you for reply. The machine has IIS installed. The php choose IIS CGI as web server. Is there any other thing needs installed?
Re: Can't open Php file
Posted: Mon Feb 22, 2010 3:50 pm
by AbraCadaver
ying06 wrote:Thank you for reply. The machine has IIS installed. The php choose IIS CGI as web server. Is there any other thing needs installed?
I'm not really sure about IIS. The PHP installer should do it correctly and tell you if you need to do more.