kielbasa Posted May 2, 2011 Share Posted May 2, 2011 So basically what the subject says. The site I'm working on now for a Co-op uses allot of php and mysql. My current "home" page is index.php on my test site. When I navigate to valleycoop/ I see the code of index.php. However, when I navigate to valleycoop/index.php it displays properly. The .htaccess file is changed to check for index.php as a default page. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/235320-indexphp-displays-code-unless-it-is-specified-in-the-url/ Share on other sites More sharing options...
sidorak95 Posted May 2, 2011 Share Posted May 2, 2011 I did a quick google and saw a few interesting results. For your php tags are you using <? or <?= instead of <?php ? Link to comment https://forums.phpfreaks.com/topic/235320-indexphp-displays-code-unless-it-is-specified-in-the-url/#findComment-1209274 Share on other sites More sharing options...
kielbasa Posted May 2, 2011 Author Share Posted May 2, 2011 Sorry i meant to post this with the original post: <?php session_start(); include('include/open.php'); include('include/navigation.php'); include('include/pages/bodyindex.php'); include('include/close.php'); ?> Link to comment https://forums.phpfreaks.com/topic/235320-indexphp-displays-code-unless-it-is-specified-in-the-url/#findComment-1209275 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.