How to get the file in PHP include to parse

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrod11
    New Member
    • Apr 2009
    • 49

    How to get the file in PHP include to parse

    I tried to include a file in my homepage and I can't for the life of me get it to work. My godaddy server is currently configured to be PHP/linux.

    Do I need to make a change to the webconfig? the charset? Here is the code, "include" is on line 9

    Code:
    
    				<div class="entry">
    					<p>Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer. Donec ipsum. Proin imperdiet est. Phasellus <a href="#">dapibus semper urna</a>. Pellentesque ornare, orci in consectetuer hendrerit, urna elit eleifend nunc, ut consectetuer nisl felis ac diam. Etiam non felis. Donec ut ante. In id eros. Suspendisse lacus turpis, cursus egestas at sem.  Mauris quam enim, molestie in, rhoncus ut, lobortis a, est.</p>
    					<p>Praesent ac lectus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus augue. Fusce eget tellus ultrices ligula volutpat adipiscing. Aenean ligula lectus, vehicula in, dictum a, fermentum nec, felis. Nunc ac turpis in leo posuere imperdiet.</p>
                        
                        
    
                        <?php include("myincludefile.html"); ?>
    
                        
    				</div>
  • guillermobytes
    New Member
    • Jan 2010
    • 77

    #2
    what do you see in your home page?
    an error? -> post the error here;
    the same code you posted? -> your file is not getting interpreted by php, maybe you have it saved as .html rather than .php or .phtml

    Comment

    • jrod11
      New Member
      • Apr 2009
      • 49

      #3
      how embarassing! I let my template file as .html

      I appreciate your post because I probably would have never checked for that. Thanks again!

      Comment

      Working...