SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Validation error due to php include

    hey folks,
    i am running validation on my web app. everything is good expect for one problem. i m using header and footer as a php include file. some of the body div are ending in footer include. which when validated give error saying there is no ending div. besides that no coding error. everything is great. should i be concerned about people who might have IE 6? or any other concerns?
    All those who wander aren't lost.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    7 Thread(s)
    There's obviously a problem with your include, so it would be good to fix it.

  3. #3
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I understand you correctly, the validator you are using is literally seeing <?php include '...'; ?> instead of the html that file includes.

    Try opening the file in your browser so the server includes the relevant HTML. View Source then copy and paste it into the validator here: http://validator.w3.org/#validate_by_input

    If you are still getting errors, you know there is something wrong within your includes or main page. Otherwise you're good to go!

  4. #4
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Well if you don't care about IE6 then don't support it .

    However if you keep that invalid HTML then it is sure to break in other brorwsers very easily if you play around with it any
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  5. #5
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    If the page has been parsed via PHP/Server and you get that error obviously you've done the PHP-includes wrong and it may affect layout, etc. Else if you mean the raw HTML with the naked unparsed PHP commands then obviously there is more chance you'll see a warning.

    Though obviously the visitor will only see the "parsed pages" anyway - not the separate include files.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •