Forum Moderators: coopster

Message Too Old, No Replies

PHP Server Side Includes Question

         

Lpe04

5:51 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



Hey, I'm new to PHP so this is probably a pretty basic question. I am creating a website with pages in PHP and use server side includes e.g. <?php require("test4.html");?> to call pages for the header, navigation, and side bars.

My question is, am I supposed to leave out the <html><head><meta...></head><body></body></html> tags for the html pages that I am calling? It seems like I should because when I view the source code of the page after loading in the browser it will show about three or four html, head, meta, and body tags from the pages I have been calling.

Also will php SSI have any effect on spiders, or will they only see the code as it is displayed after it loads in the browser?

Thanks

m_shroom

6:37 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



they only see the code as it is displayed after it loads in the browser

Birdman

7:11 pm on Jun 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, leave out the html, head, etc. on the included files if you are just pulling in various parts of one html document.