IIS 7 and Above
phpinfo() works, but nothing else?!
Last post Apr 23, 2012 01:59 PM by JanReilink
Apr 17, 2010 07:55 AM|squeakywee|LINK
I am running IIS7 and PHP 5.2.13 via FastCGI on Vista Home Premium. I've had lots of issues getting the darn thing to work, and the latest one is this:
I have made a simple test page that contains the code <?php phpinfo(); ?>, which works absolutely fine. However, if I change it to something like <?php echo "Hello World"; ?>, nothing displays at all. Nothing else displays either (ie. standard HTML code),
yet when I remove the PHP it works fine.
Can anyone shed some light on this? Apologies in advance if I'm asking this in the wrong place!
Apr 17, 2010 05:40 PM|don.raman|LINK
<?php phpinfo(); ?> is working. I hope you are storing this as some file named with .php extension example info.php. This means your PHP is configured properly. So now you have a problem that when you change/edit the same file named info.php to <?php echo
"Hello World"; ?> nothing displays at all. Is this assumption correct? Please make sure that you are saving the file named info.php as a plain text file and not in some other UNICODE format. Also let me know if there are any errors in PHP error log or if disbaling
browser to display HTTP friendly error is showing up anything.
Apr 21, 2012 07:31 PM|tubaboy26|LINK
I am having the same problem and can't seem to figure it out. It is very peculiar.
Apr 23, 2012 01:59 PM|JanReilink|LINK