Forum Moderators: coopster

Message Too Old, No Replies

IIS wants to open or save my php file

         

buckmajor

3:54 am on May 28, 2008 (gmt 0)

10+ Year Member




System: The following message was cut out of thread at: http://www.webmasterworld.com/php/3653521.htm [webmasterworld.com] by jatar_k - 12:04 am on May 28, 2008 (est -4)


Hey, I have another problem.
I have IIS set up on my laptop where you manually host your PHP files in the inetpub but when I view them, they are asking to open the file or save the file.

Any suggestions?

Many thanks in advance.

RonPK

6:57 am on May 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Basically you'll need to tell the web server that .php files are to be parsed by the PHP CGI. Perhaps the PHP IIS manual page [nl.php.net] is a good starter?

buckmajor

7:33 am on May 29, 2008 (gmt 0)

10+ Year Member



Nice, thanks for that RonPK.
There is a lot there to know so this might take some time will get back to it asap.

CHEERS :)

buckmajor

3:42 pm on May 29, 2008 (gmt 0)

10+ Year Member



Lol I found out what the problem was and the step to go about it is to set up IIS first, then install apache and php.

I tried it and on the right now but waiting to download some files.

WesleyC

3:53 pm on May 29, 2008 (gmt 0)

10+ Year Member



I might note that apache and IIS are mutually exclusive--if you're running one there's no point in running the other. Both of them are web servers, and both will try to attach to port 80--whichever gets it first will handle web requests; the other will just be wasting RAM.

buckmajor

5:01 pm on May 31, 2008 (gmt 0)

10+ Year Member



Tru, thanks for that WesleyC

I have apache, php5, xampp and IIS installed. No wonder it never viewed the correct page lol.

buckmajor

5:28 pm on May 31, 2008 (gmt 0)

10+ Year Member



Hey I did it! I uninstalled all the virtual host software e.g. apache, xampp etc. I installed wamp and it only took a minute to get it to work yippy. I don't know how to fully use it but at least I it doesn't give you that option of save or open php file anymore lol.

CHEERS :)