Support Forums
Why doesn't Windows know my php file??? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: Why doesn't Windows know my php file??? (/showthread.php?tid=1147)



Why doesn't Windows know my php file??? - C!RCU!T tr0jAn ☠ - 10-11-2009

Heya SF,
This is what comes up when I see a php file and a try to open one, can someone tell me how to make Windows reconize php file?

[Image: adc4nn.png]


BTW, I am running Windows Vista Home edition.


RE: Why doesn't Windows know my php file??? - Gaijin - 10-11-2009

PHP files can be run over the Webbrowser, on windows you need to install apache server on your system in order to view php in motion on your http://localhost/
To open the file you'll need a editor that is made for writing php files.
Notepad++ is what I use.

Windows doesn't have software to handle php files, well you still can open it with any text editor but in most cases without any coder program like above mentioned one you can't open it with double clicking
unless you associate .php extention to some text editor manually


RE: Why doesn't Windows know my php file??? - C!RCU!T tr0jAn ☠ - 10-11-2009

(10-11-2009, 01:04 AM)NinjaGeek Wrote: PHP files can be run over the Webbrowser, on windows you need to install apache server on your system in order to view php in motion on your http://localhost/
To open the file you'll need a editor that is made for writing php files.
Notepad++ is what I use.

Windows doesn't have software to handle php files, well you still can open it with any text editor but in most cases without any coder program like above mentioned one you can't open it with double clicking
unless you associate .php extention to some text editor manually

Ok thanks, I have been wondering this for a while now.


RE: Why doesn't Windows know my php file??? - Gaijin - 10-11-2009

(10-11-2009, 01:08 AM)h4ckingURLife Wrote: Ok thanks, I have been wondering this for a while now.
no problem mate.

If you want to be able to view PHP files localy you can always download and install WAMP/XAMP, those are virtual servers that allow you running php code on your local system

edit: Thank you!


RE: Why doesn't Windows know my php file??? - brett7 - 10-11-2009

you can also download php then it will run


RE: Why doesn't Windows know my php file??? - Tim - 10-11-2009

As above, you need to install the PHP interpreter before you can execute a PHP file, XAMPP and WAMP are easy options for doing this. The first topic of my PHP tutorial covers this http://www.supportforums.net/showthread.php?tid=335