Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using php on windows XP pro . . 1

Status
Not open for further replies.

bomayed

Technical User
May 13, 2002
101
AE
I have been working with perl and cgi and now I would like to learn about php . I have windows xp pro and I have installed the IIS to make my computer work as a webserver.

However, when I try to open a php file through my browser , it opens the file as a text file , in other words it doesn't execute the php file as it suppose to!

can someone help me and tell me how to run php files on winXP pro?

Thanking you in advance . .
 
You have to open the file with your browser like you normally would. So assuming your file is in the document root, try an address like:

[file name].php

That's how EasyPHP sets things up, should work for yours.
 
The problem is that IIS 4 & 5 (actually all MS systems) only allows to run *.asp pages. Obviously this includes *.htm pages as well.
To open *.php pages you need to install Apache and PHP on your computer. This will solve your problem. You don't need eyes to see just a vision.
 
Having never used IIS, I can't really tell you how to do it. But you don't have to use Apache, even though Apache is better in most (all?) aspects, you can invoke PHP as a CGI application, just as you would with Perl. //Daniel
 
If you are not using ASP, I would suggest uninstalling IIS because of the weekly security patches that seem to come out. Apache & PHP & MySQL are a nice trio to install (all free and used widely on the internet).

There are several good packages to install all three (like foxserv.net) but manually installing each app is not too tough either.
 
PHP runs just fine in IIS, though you'll notice it doesn't run as tightly as it does in Apache (I specifically have had problems with using `'s and other functions which work with the file system or operating system... nothing I can't work around, but it's a bit annoying)

It sounds to me like you haven't installed PHP yet, you need to go to download the latest release, and read the readme.txt... it's a little long, but it gives step by step instructions for how to set it up with any webserver... my only advice would be to read the whole thing through once before going, if I remember right, there's a section or two relating to IIS that explains a paragraph before saying (except in IIS).

Good luck,
Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top