W3C home > Mailing lists > Public > site-comments@w3.org > March 2005

Bad code

From: <webmaster@eammm.com>
Date: Sun, 13 Mar 2005 00:31:29 +0000
To: site-comments@w3.org
Message-id: <42335A50.3090504@eammm.com>

Are you insane?  Look at this page

Scroll to the bottom, where you'll see this:

Here is an example of an XHTML 1.1 document.

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
    <title>Virtual Library</title>
    <p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>


Why are you using PHP code for line 1?
If someone who has a page that ends in ".php" they will get an error 
message, and their page won't display.  As that is not valid PHP syntax, 
but you're using PHP tags.
I put it on a page of mine, just so I could show you the message.  
Keeping in mind that I am well aware that it would result in an error, 
and I've quickly removed the problematic line 1 after I copied the 
message.  (So don't ask to see the page).

*Parse error*: parse error, unexpected T_STRING in 
*/home/jasper/public_html/globalhead.php* on line *1*

Someone who is not as knowing about these sort of things, will have 
problems because of the information on that webpage.
Please review the webpage, and think about removing that bit of example 

And next time, think before you publish something.
Received on Sunday, 13 March 2005 00:31:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:15:35 UTC