php - i do not get any error running website on mamp but nothing is displayed -


i using mamp free version on windows10 using default ports (80, 80, 3306). working directory "dynamicwebsites.com" inside mamp/htdocs sub-directory. have "includes" sub-directory "header.php" , "footer.php" files. calling header.php , footer.php in index.php (which in root folder i.e. inside "dynamicwebsites.com)

i have 3 statements in index.php file

<?php echo"index.php dynamicwebsite.com"; <?php include('includes/header.php'); ?> <?php include('includes/footer.php'); ?>  

the above code displays message. however, if place echo function between 2 include functions nothing displayed. have tried moving "header.php" , "footer.php" root folder , use <?php include('header.php');?> statement, result same. message displayed echo function means php working. never had problem using mamp when installed wordpress locally. however, facing problems running php scripts alone.

i not understand why echo function not work if put in between include functions.

could ? thanks


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -