cluce Posted May 24, 2007 Share Posted May 24, 2007 I have a web site hosted on IIS under netpub. My html pages display correctly but my php web pages are not showing only the code is being displayed. Can someone tell me why my php is not being interpreted? Quote Link to comment https://forums.phpfreaks.com/topic/52863-php-web-page-is-not-displaying-only-the-code-shows/ Share on other sites More sharing options...
bkiatenxi Posted May 25, 2007 Share Posted May 25, 2007 Are you finished configuring your IIS? What i mean is, did you already configured IIS to read .php extension? If you think you've done the configurations correctly, most of them (configuration instructions) are on this thread, try changing the php start code from <? to <?php or vice versa. Hope this helps. By the way, Im also a newbie in IIS + php. Quote Link to comment https://forums.phpfreaks.com/topic/52863-php-web-page-is-not-displaying-only-the-code-shows/#findComment-261281 Share on other sites More sharing options...
cluce Posted May 25, 2007 Author Share Posted May 25, 2007 this is weird. it displays this <?php phpinfo(); ?> correctly. But all my other pages wont display. It either shows code in IE or it opens the php file in notepad. ??? Quote Link to comment https://forums.phpfreaks.com/topic/52863-php-web-page-is-not-displaying-only-the-code-shows/#findComment-261556 Share on other sites More sharing options...
bkiatenxi Posted May 26, 2007 Share Posted May 26, 2007 Have you tried testing something like this: <?php echo "Hell World!"; ?> If it worked fine then theres something wrong with your other codes, otherwise it really is wierd... Quote Link to comment https://forums.phpfreaks.com/topic/52863-php-web-page-is-not-displaying-only-the-code-shows/#findComment-261980 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.