Forum Moderators: coopster

Message Too Old, No Replies

browser not support php

         

yllai

1:55 am on Dec 12, 2006 (gmt 0)

10+ Year Member



Hi,

With my XP Pro, I have installed php5.2 plug in. With my IIS, I have a index.php(display today date) in my c:\Inetpub\wwwroot\, when I open my browser, goto http:\\localhost\index.php, the page didn't show me the date, it only show me the text which is coded with html.

what is the problem? Any ideas? How can I test whether my IIS support php or not (even I have install the plug-in). Where can I get these info from?

TQ.

eelixduppy

2:02 am on Dec 12, 2006 (gmt 0)



The browser does not matter when it comes to PHP. It's not interpreted by the browser, but rather on the server.

Read up on Installations of PHP with IIS [us3.php.net] to see if you installed it correctly.

Also, trying a php file with this in it will show you too:


[url=http://us3.php.net/manual/en/function.phpinfo.php]phpinfo[/url]();

Best of luck!

mattcg

4:44 pm on Dec 13, 2006 (gmt 0)

10+ Year Member



You've got to tell IIS what to with files that end in .php. Right click on your website in the IIS tree menu. Go to the Directory tab and click the Configuration button. Now click the Add button. Input php as the extension, and browse for the isapi dll (normally php4isapi.dll) or cgi executable (php.exe) in the PHP installation directory. Check 'All verbs', 'Script engine' and 'Verify that file exists'. Click OK, apply changes and restart IIS (Start > Run > cmd > iisreset).