OAFC_Rob Posted June 9, 2011 Share Posted June 9, 2011 Hey, I've been working on a new site and just quickly validated it with the W3C Validator an i'm getting errors like this; Line 16, Column 45: character "<" is the first character of a delimiter but occurred as data … <link rel="shortcut icon" href="<?php $_SERVER["DOCUMENT_ROOT"] ?>/innov… ✉ This message may appear in several cases: You tried to include the "<" character in your page: you should escape it as "<" You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe. Another possibility is that you forgot to close quotes in a previous tag. Any reasons why?? I'm going to have a break from work, have some food and it might come to me, but any help in the mean time would be greatly apprecaited. Quote Link to comment https://forums.phpfreaks.com/topic/238891-validation-errors/ Share on other sites More sharing options...
Psycho Posted June 9, 2011 Share Posted June 9, 2011 The error message is an HTML error NOT a PHP error (moved topic to appropriate thread). You need to check line 16 of the HTML source that is generated from the PHP code. Of course, if you are simply dumping your PHP code into a validator or pointing the validator to your page which is hosted on a server that is not parsing the PHP code, then that would explain your problem as well. An HTML validator does not expect PHP code. Quote Link to comment https://forums.phpfreaks.com/topic/238891-validation-errors/#findComment-1227499 Share on other sites More sharing options...
OAFC_Rob Posted June 9, 2011 Author Share Posted June 9, 2011 Jesus! Totally forgot about that, I was just dumping the coding directly into the validator, which would make it go mental. Thanks for the help Quote Link to comment https://forums.phpfreaks.com/topic/238891-validation-errors/#findComment-1227504 Share on other sites More sharing options...
cssfreakie Posted June 9, 2011 Share Posted June 9, 2011 If it's solved please mark it solved, saves others time looking into the matter. Quote Link to comment https://forums.phpfreaks.com/topic/238891-validation-errors/#findComment-1227725 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.