Thread: PHP Include
View Single Post
  #1 (permalink)  
Old 08-31-10, 12:29 PM
gocondo11 gocondo11 is offline
New Member
 
Join Date: Aug 2010
Location: TORONTO
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Include

I wrote my website in PHP with Eclipse. My main page index.php uses the INCLUDE statement in order to display the sidebar and other part of the page, because these parts are also used by other pages.

My problem is that if I add the "<!DOCTYPE html PUBLIC..." to each include file, I receive error when validating my index.php because it finds several "<!DOCTYPE html PUBLIC..." inside the page.

But if I remove this "<!DOCTYPE html PUBLIC..." line from all include files, then Eclipse cannot validate my files as HTML.

Any idea how to solve this problem? You can check my website below.

GO CONDO TORONTO
Reply With Quote