IM NEW AT THIS AND I'M WORKING ON MY FIRST WEBSITE. I USED iWED AND I DON'T UNDERSTAND WHY IT WON'T WORK. WHENEVER I TRY TO OPEN IT IT SAYS: Parse error: syntax error, unexpected T_STRING in /home/a2460084/public_html/beto/index.html on line 1

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
    <meta name="Generator" content="iWeb 3.0.1" />
    <meta name="iWeb-Build" content="local-build-20091022" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta name="viewport" content="width=700" />
    <title>Missing You</title>
    <link rel="stylesheet" type="text/css" media="screen,print" href="Missing_You_files/Missing_You.css" />
    <!--[if lt IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Missing_You_files/Missing_YouIE.css'/><![endif]-->
    <!--[if gte IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/><![endif]-->
    <style type="text/css">
/*<![CDATA[*/
	@import "Scripts/Widgets/HTMLRegion/Paste.css";
/*]]>*/
</style>
    <script type="text/javascript" src="Scripts/iWebSite.js"></script>
    <script type="text/javascript" src="Scripts/Widgets/SharedResources/WidgetCommon.js"></script>
    <script type="text/javascript" src="Scripts/Widgets/Navbar/navbar.js"></script>
    <script type="text/javascript" src="Scripts/iWebImage.js"></script>
    <script type="text/javascript" src="Scripts/iWebMediaGrid.js"></script>
    <script type="text/javascript" src="Scripts/Widgets/HTMLRegion/Paste.js"></script>
    <script type="text/javascript" src="Missing_You_files/Missing_You.js"></script>
  </head>
  <body style="background: rgb(0, 0, 0); margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();">
    <div style="text-align: center; ">
      <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word;  background: rgb(0, 0, 0); text-align: left; width: 700px; " id="body_content">
        <div style="margin-left: 0px; position: relative; width: 700px; z-index: 0; " id="nav_layer">
          <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
          <div class="com-apple-iweb-widget-navbar flowDefining" id="widget0" style="margin-left: 35px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; ">
    
            <div id="widget0-navbar" class="navbar">

      
              <div id="widget0-bg" class="navbar-bg">

        
                <ul id="widget0-navbar-list" class="navbar-list">
 <li></li> 
</ul>
                
      
</div>
              
    
</div>
          </div>
          <script type="text/javascript"><!--//--><![CDATA[//><!--
new NavBar('widget0', 'Scripts/Widgets/Navbar', 'Scripts/Widgets/SharedResources', '.', {"current-page-GUID": "39E4CABD-105C-4012-BE22-46B54350B51B", "path-to-root": "", "isCollectionPage": "NO", "navbar-css": ".navbar {\n\tfont-family: Arial, sans-serif;\n\tfont-size: 1em;\n\tcolor: #A1A1A1;\n\tmargin: 9px 0px 6px 0px;\n\tline-height: 30px;\n}\n\n.navbar-bg {\n\ttext-align: center;\n}\n\n.navbar-bg ul {\n\tlist-style: none;\n\tmargin: 0px;\n\tpadding: 0px;\n}\n\n\nli {\n\tlist-style-type: none;\n\tdisplay: inline;\n\tpadding: 0px 10px 0px 10px;\n}\n\n\nli a {\n\ttext-decoration: none;\n\tcolor: #A1A1A1;\n}\n\nli a:visited {\n\ttext-decoration: none;\n\tcolor: #A1A1A1;\n}\n\n\nli a:hover\n{\n\ttext-decoration: none;\n \tcolor: #eee;\n}\n\n\nli.current-page a\n{\n\ttext-decoration: none;\n\t color: #fff;\n\tfont-weight: bold;\n\n}"});
//--><!]]></script>
          <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div>
        </div>
        <div style="height: 162px; margin-left: 0px; position: relative; width: 700px; z-index: 10; " id="header_layer">
          <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
          <div style="height: 1px; width: 630px;  height: 1px; left: 35px; position: absolute; top: 3px; width: 630px; z-index: 1; " class="tinyText">
            <div style="position: relative; width: 630px; ">
              <img src="Missing_You_files/shapeimage_1.jpg" alt="" style="height: 1px; left: 0px; position: absolute; top: 0px; width: 630px; " />
            </div>
          </div>
          


          <div id="id1" style="height: 50px; left: 35px; position: absolute; top: 23px; width: 630px; z-index: 1; " class="style_SkipStroke shape-with-text">
            <div class="text-content style_External_630_50" style="padding: 0px; ">
              <div class="style"></div>
            </div>
          </div>
          


          <div style="height: 267px; width: 644px;  height: 267px; left: 23px; position: absolute; top: -106px; width: 644px; z-index: 1; " class="tinyText">
            <div style="position: relative; width: 644px; "></div>
          </div>
        </div>
        <div style="margin-left: 0px; position: relative; width: 700px; z-index: 5; " id="body_layer">
          <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
          <div style="height: 288px; width: 346px;  height: 288px; left: 334px; position: absolute; top: -102px; width: 345px; z-index: 1; " class="tinyText">
            <div style="position: relative; width: 345px; ">
              <img src="Missing_You_files/shapeimage_2.png" alt="" style="height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; " />
            </div>
          </div>
          


          <div style="height: 288px; width: 346px;  height: 288px; left: 20px; position: absolute; top: -102px; width: 345px; z-index: 1; " class="tinyText">
            <div style="position: relative; width: 345px; ">
              <img src="Missing_You_files/shapeimage_3.png" alt="" style="height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; " />
            </div>
          </div>
          


          <div style="height: 288px; width: 346px;  height: 288px; left: 334px; position: absolute; top: 135px; width: 345px; z-index: 1; " class="tinyText">
            <div style="position: relative; width: 345px; ">
              <img src="Missing_You_files/shapeimage_4.png" alt="" style="height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; " />
            </div>
          </div>
          


          <div style="height: 288px; width: 346px;  height: 288px; left: 20px; position: absolute; top: 135px; width: 345px; z-index: 1; " class="tinyText">
            <div style="position: relative; width: 345px; ">
              <img src="Missing_You_files/shapeimage_5.png" alt="" style="height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; " />
            </div>
          </div>
          <div class="com-apple-iweb-widget-HTMLRegion" id="widget1" style="height: 209px; left: 200px; opacity: 1.00; position: absolute; top: 992px; width: 300px; z-index: 1; ">
            <script type="text/javascript"><!--//--><![CDATA[//><!--
    var widget1_htmlMarkupURL = ".//Missing_You_files/widget1_markup.html";
//--><!]]></script>
            <div id="widget1-htmlRegion" class="html_region_widget"></div>
          </div>
          <script type="text/javascript"><!--//--><![CDATA[//><!--
new Paste('widget1', 'Scripts/Widgets/HTMLRegion', 'Scripts/Widgets/SharedResources', '.', {"emptyLook": false});
//--><!]]></script>
          <div id="id2" style="height: 417px; left: -3px; position: absolute; top: 511px; width: 696px; z-index: 1; " class="style_SkipStroke_1 shape-with-text">
            <div class="text-content graphic_textbox_layout_style_default_External_696_417" style="padding: 0px; ">
              <div class="graphic_textbox_layout_style_default">
                <p style="padding-top: 0pt; " class="paragraph_style">Beto Roman, <br /></p>
                <p class="paragraph_style">        I hope you are able to look back at this and remember all the good times we shared. I’m sorry for all the pain I’ve caused you and I hope that these wonderful memories will shine a smile on your face cutie pie. <br /></p>
                <p class="paragraph_style"><br /></p>
                <p class="paragraph_style">P.S. I miss you.<br /></p>
                <p style="padding-bottom: 0pt; " class="paragraph_style">                                                                                </p>
              </div>
            </div>
          </div>
          


          <div id="id3" style="height: 100px; left: 300px; position: absolute; top: 450px; width: 100px; z-index: 1; " class="style_SkipStroke_1 shape-with-text">
            <div class="text-content graphic_textbox_layout_style_default_External_100_100" style="padding: 0px; ">
              <div class="graphic_textbox_layout_style_default"></div>
            </div>
          </div>
          <div style="height: 1201px; line-height: 1201px; " class="spacer"> </div>
        </div>
        <div style="height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; " id="footer_layer">
          <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
        </div>
      </div>
    </div>
  </body>
</html>

Recommended Answers

All 3 Replies

A) Use code tags
B) This is a PHP problem not Javascript
C)

<?xml version="1.0" encoding="UTF-8"?> // <---- this is your problem because of the <?

If you're in PHP you have to echo the <?xml otherwise PHP will think you're trying to open PHP tags and parse whatever is inside.

<?php echo '<?xml version="1.0" encoding="UTF-8"?>' ?>
commented: Good answers, A, B and C. +1

I am having trouble with my website as well. It doesn't work no matter what I do. can somebody please tell me what's wrong here.
Here is my php code

"<?php



function woo_options(){
// VARIABLES
$themename = "Bueno";
$manualurl = 'http://www.woothemes.com/support/theme-documentation/bueno/';
$shortname = "woo";



$GLOBALS['template_path'] = get_bloginfo('template_directory');

//Access the WordPress Categories via an Array
$woo_categories = array();
$woo_categories_obj = get_categories('hide_empty=0');
foreach ($woo_categories_obj as $woo_cat) {
$woo_categories[$woo_cat->cat_ID] = $woo_cat->cat_name;}
$categories_tmp = array_unshift($woo_categories, "Select a category:");

//Access the WordPress Pages via an Array
$woo_pages = array();
$woo_pages_obj = get_pages('sort_column=post_parent,menu_order');
foreach ($woo_pages_obj as $woo_page) {
$woo_pages[$woo_page->ID] = $woo_page->post_name; }
$woo_pages_tmp = array_unshift($woo_pages, "Select a page:");

//Testing
$options_select = array("one","two","three","four","five");
$options_radio = array("one" => "One","two" => "Two","three" => "Three","four" => "Four","five" => "Five");

//Stylesheets Reader
$alt_stylesheet_path = TEMPLATEPATH . '/styles/';
$alt_stylesheets = array();

if ( is_dir($alt_stylesheet_path) ) {
if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) ) {
while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false ) {
if(stristr($alt_stylesheet_file, ".css") !== false) {
$alt_stylesheets[] = $alt_stylesheet_file;
}
}
}
}

//More Options
$all_uploads_path = get_bloginfo('home') . '/wp-content/uploads/';
$all_uploads = get_option('woo_uploads');
$other_entries = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19");

// THIS IS THE DIFFERENT FIELDS
$options = array();

$options[] = array( "name" => "General Settings",
"type" => "heading");

$options[] = array( "name" => "Theme Stylesheet",
"desc" => "Select your themes alternative color scheme.",
"id" => $shortname."_alt_stylesheet",
"std" => "default.css",
"type" => "select",
"options" => $alt_stylesheets);

$options[] = array( "name" => "Custom Logo",
"desc" => "Upload a logo for your theme, or specify the image address of your online logo. (http://yoursite.com/logo.png)",
"id" => $shortname."_logo",
"std" => "",
"type" => "upload");

$options[] = array( "name" => "Text Title",
"desc" => "Enable if you want Blog Title and Tagline to be text-based. Setup title/tagline in WP -> Settings -> General.",
"id" => $shortname."_texttitle",
"std" => "false",
"type" => "checkbox");


$options[] = array( "name" => "Custom Favicon",
"desc" => "Upload a 16px x 16px Png/Gif image that will represent your website's favicon.",
"id" => $shortname."_custom_favicon",
"std" => "",
"type" => "upload");

$options[] = array( "name" => "Tracking Code",
"desc" => "Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.",
"id" => $shortname."_google_analytics",
"std" => "",
"type" => "textarea");

$options[] = array( "name" => "RSS URL",
"desc" => "Enter your preferred RSS URL. (Feedburner or other)",
"id" => $shortname."_feedburner_url",
"std" => "",
"type" => "text");

$options[] = array( "name" => "E-Mail URL",
"desc" => "Enter your preferred E-mail subscription URL. (Feedburner or other)",
"id" => $shortname."_feedburner_id",
"std" => "",
"type" => "text");

$options[] = array( "name" => "Custom CSS",
"desc" => "Quickly add some CSS to your theme by adding it to this block.",
"id" => $shortname."_custom_css",
"std" => "",
"type" => "textarea");

$options[] = array( "name" => "Navigation Options",
"type" => "heading");

$options[] = array( "name" => "Exclude Pages or Categories from Navigation",
"desc" => "Enter a comma-separated list of <a href='http://support.wordpress.com/pages/8/'>ID's</a> that you'd like to exclude from the top navigation. (e.g. 12,23,27,44)",
"id" => $shortname."_nav_exclude",
"std" => "",
"type" => "text");

$options[] = array( "name" => "Use Breadcrumbs?",
"desc" => "Check this box if you'd like to enable the use of breadcrumbs.",
"id" => $shortname."_breadcrumbs",
"std" => "false",
"type" => "checkbox");

$options[] = array( "name" => "Dynamic Images",
"type" => "heading");

$options[] = array( "name" => "Enable Dynamic Image Resizer",
"desc" => "This will enable the thumb.php script. It dynamicaly resizes images on your site.",
"id" => $shortname."_resize",
"std" => "true",
"type" => "checkbox");

$options[] = array( "name" => "Automatic Image Thumbs",
"desc" => "If no image is specified in the 'image' custom field then the first uploaded post image is used.",
"id" => $shortname."_auto_img",
"std" => "false",
"type" => "checkbox");

$options[] = array( "name" => "Image Dimensions",
"desc" => "Enter an integer value i.e. 250 for the desired size which will be used when dynamically creating the images.",
"id" => $shortname."_image_dimensions",
"std" => "",
"type" => array(
array( 'id' => $shortname. '_get_image_width',
'type' => 'text',
'std' => 200,
'meta' => 'Width'),
array( 'id' => $shortname. '_get_image_height',
'type' => 'text',
'std' => 500,
'meta' => 'Height')
));

//Advertising
$options[] = array( "name" => "Ads - Sidebar Widget (300x250px)",
"type" => "heading");

$options[] = array( "name" => "Adsense code",
"desc" => "Enter your adsense code (or other ad network code) here.",
"id" => $shortname."_ad_300_adsense",
"std" => "",
"type" => "textarea");

$options[] = array( "name" => "Image Location",
"desc" => "Enter the URL for this banner ad.",
"id" => $shortname."_ad_300_image",
"std" => "http://www.woothemes.com/ads/300x250b.jpg",
"type" => "upload");

$options[] = array( "name" => "Destination URL",
"desc" => "Enter the URL where this banner ad points to.",
"id" => $shortname."_ad_300_url",
"std" => "http://www.woothemes.com",
"type" => "text");

$options[] = array( "name" => "Banner Ads Sidebar - Widget (125x125)",
"type" => "heading");

$options[] = array( "name" => "Rotate banners?",
"desc" => "Check this to randomly rotate the banner ads.",
"id" => $shortname."_ads_rotate",
"std" => "true",
"type" => "checkbox");

$options[] = array( "name" => "Banner Ad #1 - Image Location",
"desc" => "Enter the URL for this banner ad.",
"id" => $shortname."_ad_image_1",
"std" => "http://www.woothemes.com/ads/125x125b.jpg",
"type" => "text");

$options[] = array( "name" => "Banner Ad #1 - Destination",
"desc" => "Enter the URL where this banner ad points to.",
"id" => $shortname."_ad_url_1",
"std" => "http://www.woothemes.com",
"type" => "text");

$options[] = array( "name" => "Banner Ad #2 - Image Location",
"desc" => "Enter the URL for this banner ad.",
"id" => $shortname."_ad_image_2",
"std" => "http://www.woothemes.com/ads/125x125b.jpg",
"type" => "text");

$options[] = array( "name" => "Banner Ad #2 - Destination",
"desc" => "Enter the URL where this banner ad points to.",
"id" => $shortname."_ad_url_2",
"std" => "http://www.woothemes.com",
"type" => "text");

$options[] = array( "name" => "Banner Ad #3 - Image Location",
"desc" => "Enter the URL for this banner ad.",
"id" => $shortname."_ad_image_3",
"std" => "http://www.woothemes.com/ads/125x125b.jpg",
"type" => "text");

$options[] = array( "name" => "Banner Ad #3 - Destination",
"desc" => "Enter the URL where this banner ad points to.",
"id" => $shortname."_ad_url_3",
"std" => "http://www.woothemes.com",
"type" => "text");

$options[] = array( "name" => "Banner Ad #4 - Image Location",
"desc" => "Enter the URL for this banner ad.",
"id" => $shortname."_ad_image_4",
"std" => "http://www.woothemes.com/ads/125x125b.jpg",
"type" => "text");

$options[] = array( "name" => "Banner Ad #4 - Destination",
"desc" => "Enter the URL where this banner ad points to.",
"id" => $shortname."_ad_url_4",
"std" => "http://www.woothemes.com",
"type" => "text");

$options[] = array( "name" => "Banner Ad #5 - Image Location",
"desc" => "Enter the URL for this banner ad.",
"id" => $shortname."_ad_image_5",
"std" => "http://www.woothemes.com/ads/125x125b.jpg",
"type" => "text");

$options[] = array( "name" => "Banner Ad #5 - Destination",
"desc" => "Enter the URL where this banner ad points to.",
"id" => $shortname."_ad_url_5",
"std" => "http://www.woothemes.com",
"type" => "text");

$options[] = array( "name" => "Banner Ad #6 - Image Location",
"desc" => "Enter the URL for this banner ad.",
"id" => $shortname."_ad_image_6",
"std" => "http://www.woothemes.com/ads/125x125b.jpg",
"type" => "text");

$options[] = array( "name" => "Banner Ad #6 - Destination",
"desc" => "Enter the URL where this banner ad points to.",
"id" => $shortname."_ad_url_6",
"std" => "http://www.woothemes.com",
"type" => "text");

update_option('woo_template',$options);
update_option('woo_themename',$themename);
update_option('woo_shortname',$shortname);
update_option('woo_manual',$manualurl);


// Woo Metabox Options


$woo_metaboxes = array(

"image" => array (
"name" => "image",
"default" => "",
"label" => "Image",
"type" => "upload",
"desc" => "Enter the URL for image to be used by the Dynamic Image resizer."
)

);

update_option('woo_custom_template',$woo_metaboxes);

/*
function woo_update_options(){
$options = get_option('woo_template',$options);
foreach ($options as $option){
update_option($option['id'],$option['std']);
}
}

function woo_add_options(){
$options = get_option('woo_template',$options);
foreach ($options as $option){
update_option($option['id'],$option['std']);
}
}


//add_action('switch_theme', 'woo_update_options');
if(get_option('template') == 'wooframework'){
woo_add_options();
} // end function
*/


}

add_action('init','woo_options');

?>;
commented: start your own thread -3

Sorry can not provide assistance
but, why not have "</head>"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.