#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2006
    Posts
    199
    Rep Power
    28

    [Solved] Copyright symbol + XML


    Just starting to work with XHTML5 and properly formatting the MIME type. When I switched everything over, I get the following error:

    XML Parsing Error: undefined entity
    Location: http://area51entertainment.co/index.php
    Line Number 50, Column 29:
    <div class="copyright">&/copy; 2012 Area 51 Entertainment, Inc.</div>
    ----------------------------^
    (slash added above because forum software processed into actual symbol)

    What do I need to do to fix this?


    Here's my current code:

    Code:
    <?php
    require_once 'func.php';
    
    if(isset($_GET['contact'])){
    
    }
    else{
    $javascript='<script type="text/javascript" src="scroll.js"></script>'."\n";
    }
    header("Content-Type: application/xhtml+xml;charset=utf-8");
    $setyear="2012";
    ?>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
    <base href="http://www.area51entertainment.co/" />
    <title>Area 51 Entertainment <?php echo "$section"; ?></title>
    <meta charset="UTF-8" /> 
    <meta name="verify-v1" content="" />
    <meta name="keywords" content=""  />
    <meta name="description" content="" />
    <meta name="author" content="Andrew McCarrick" />
    <meta name="robots" content="index, follow" />
    <style type="text/css">
    body {
    background: #000000; /* Old browsers */
    /* IE9 SVG, needs conditional override of 'filter' to 'none' */
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzQwMDQwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, #400400 0%, #000000 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#400400), color-stop(100%,#000000)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #300300 0%,#000000 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #300300 0%,#000000 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #300300 0%,#000000 100%); /* IE10+ */
    background: linear-gradient(top, #300300 0%,#000000 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#300300', endColorstr='#000000',GradientType=0 ); /* IE6-8 */
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFFFFF; 
    font-family: Verdana; 
    margin-right:auto;
    margin-left:auto;
    max-width:1000px;
    }
    </style>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <?php
    echo $javascript;
    ?>
    </head>
    <body>
    <div class="wrapper">
    
    <div class="head_wrapper">
    <div class="logo"></div>
    <div class="links">
    Home | Films | Television | DVD/Blu-Ray | Web | Music | About | Contact | Investors
    </div>
    </div>
    
    <div class="content_wrapper">
    
    </div>
    
    <div class="footer_wrapper">
    <div class="copyright"><? echo "&amp;copy; $setyear" . ((date('Y') != $setyear)? " - " . date('Y') : '')"; ?> Area 51 Entertainment, Inc.</div>
    </div>
    
    </div>
    </body>
    </html>

    EDIT: Had to use the Unicode - &#169;
    Last edited by HDFilmMaker2112; February 26th, 2012 at 12:21 PM.

IMN logo majestic logo threadwatch logo seochat tools logo