Php doesn't work in browser
Posted: Wed Feb 05, 2014 4:13 am
Hi ,
I have a windows vista service pack 2 system. I am running IIS and I have mysql installed and working. I ran the web platform installer and it created a subdirectory in c:\program files\iis express\PHP\v5.4. I also have changed the file defaults to point .php files to the php.exe in the this subdirectory I just referred to. When I get to the command line interpreter via cmd.exe I execute the command php -i and that works. If I make a small php script and type "php test.php" , that works also. However, if i go to the browser and execute a file with .html extension that has mixed html and php code, that only executes the html portion of the code in the chrome browser. Also if i just get into the php interpreter I don't get a prompt telling me I am there and nothing seems to execute there even though I put in valid php code. It just doesn't answer at all. This is IIS 7 and PHP 5.4 .
Thanks for any help
I have a windows vista service pack 2 system. I am running IIS and I have mysql installed and working. I ran the web platform installer and it created a subdirectory in c:\program files\iis express\PHP\v5.4. I also have changed the file defaults to point .php files to the php.exe in the this subdirectory I just referred to. When I get to the command line interpreter via cmd.exe I execute the command php -i and that works. If I make a small php script and type "php test.php" , that works also. However, if i go to the browser and execute a file with .html extension that has mixed html and php code, that only executes the html portion of the code in the chrome browser. Also if i just get into the php interpreter I don't get a prompt telling me I am there and nothing seems to execute there even though I put in valid php code. It just doesn't answer at all. This is IIS 7 and PHP 5.4 .
Thanks for any help