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!
<?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.
What does the command line tell you? c:\path\to\php5>php-cgi.exe (-c c:\path\to\php5\php.ini) drive:\path\to\file.php This should either parse the file appropriate and display something like [code]Content-type: text/html Hello World[/code] or produce an error
message.
squeakywee
1 Post
phpinfo() works, but nothing else?!
Apr 17, 2010 06:55 AM|LINK
Hi all,
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!
don.raman
1207 Posts
Microsoft
Moderator
Re: phpinfo() works, but nothing else?!
Apr 17, 2010 04:40 PM|LINK
Hi,
<?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.
Thanks,
Don.
tubaboy26
14 Posts
Re: phpinfo() works, but nothing else?!
Apr 21, 2012 06:31 PM|LINK
I am having the same problem and can't seem to figure it out. It is very peculiar.
JanReilink
36 Posts
Re: phpinfo() works, but nothing else?!
Apr 23, 2012 12:59 PM|LINK
Vevida Services - worry-free webhosting: http://vevida.com