KEEP GETTING Parse error: syntax error, unexpected T_STRING in /home/a2460084/public_

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Oct 2009
Posts: 1
Reputation: lcfr1012 is an unknown quantity at this point 
Solved Threads: 0
lcfr1012 lcfr1012 is offline Offline
Newbie Poster

KEEP GETTING Parse error: syntax error, unexpected T_STRING in /home/a2460084/public_

 
0
  #1
Oct 22nd, 2009
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



  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3.  
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  6. <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7.  
  8. <meta name="Generator" content="iWeb 3.0.1" />
  9. <meta name="iWeb-Build" content="local-build-20091022" />
  10. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  11. <meta name="viewport" content="width=700" />
  12. <title>Missing You</title>
  13. <link rel="stylesheet" type="text/css" media="screen,print" href="Missing_You_files/Missing_You.css" />
  14. <!--[if lt IE 8]>
  15. <link rel='stylesheet' type='text/css' media='screen,print' href='Missing_You_files/Missing_YouIE.css'/><![endif]-->
  16. <!--[if gte IE 8]>
  17. <link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/><![endif]-->
  18. <style type="text/css">
  19. /*<![CDATA[*/
  20. @import "Scripts/Widgets/HTMLRegion/Paste.css";
  21. /*]]>*/
  22. </style>
  23. <script type="text/javascript" src="Scripts/iWebSite.js"></script>
  24. <script type="text/javascript" src="Scripts/Widgets/SharedResources/WidgetCommon.js"></script>
  25. <script type="text/javascript" src="Scripts/Widgets/Navbar/navbar.js"></script>
  26. <script type="text/javascript" src="Scripts/iWebImage.js"></script>
  27. <script type="text/javascript" src="Scripts/iWebMediaGrid.js"></script>
  28. <script type="text/javascript" src="Scripts/Widgets/HTMLRegion/Paste.js"></script>
  29. <script type="text/javascript" src="Missing_You_files/Missing_You.js"></script>
  30. </head>
  31. <body style="background: rgb(0, 0, 0); margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();">
  32. <div style="text-align: center; ">
  33. <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">
  34. <div style="margin-left: 0px; position: relative; width: 700px; z-index: 0; " id="nav_layer">
  35. <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
  36. <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; ">
  37.  
  38. <div id="widget0-navbar" class="navbar">
  39.  
  40.  
  41. <div id="widget0-bg" class="navbar-bg">
  42.  
  43.  
  44. <ul id="widget0-navbar-list" class="navbar-list">
  45. <li></li>
  46. </ul>
  47.  
  48.  
  49. </div>
  50.  
  51.  
  52. </div>
  53. </div>
  54. <script type="text/javascript"><!--//--><![CDATA[//><!--
  55. 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}"});
  56. //--><!]]></script>
  57. <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div>
  58. </div>
  59. <div style="height: 162px; margin-left: 0px; position: relative; width: 700px; z-index: 10; " id="header_layer">
  60. <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
  61. <div style="height: 1px; width: 630px; height: 1px; left: 35px; position: absolute; top: 3px; width: 630px; z-index: 1; " class="tinyText">
  62. <div style="position: relative; width: 630px; ">
  63. <img src="Missing_You_files/shapeimage_1.jpg" alt="" style="height: 1px; left: 0px; position: absolute; top: 0px; width: 630px; " />
  64. </div>
  65. </div>
  66.  
  67.  
  68.  
  69. <div id="id1" style="height: 50px; left: 35px; position: absolute; top: 23px; width: 630px; z-index: 1; " class="style_SkipStroke shape-with-text">
  70. <div class="text-content style_External_630_50" style="padding: 0px; ">
  71. <div class="style"></div>
  72. </div>
  73. </div>
  74.  
  75.  
  76.  
  77. <div style="height: 267px; width: 644px; height: 267px; left: 23px; position: absolute; top: -106px; width: 644px; z-index: 1; " class="tinyText">
  78. <div style="position: relative; width: 644px; "></div>
  79. </div>
  80. </div>
  81. <div style="margin-left: 0px; position: relative; width: 700px; z-index: 5; " id="body_layer">
  82. <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
  83. <div style="height: 288px; width: 346px; height: 288px; left: 334px; position: absolute; top: -102px; width: 345px; z-index: 1; " class="tinyText">
  84. <div style="position: relative; width: 345px; ">
  85. <img src="Missing_You_files/shapeimage_2.png" alt="" style="height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; " />
  86. </div>
  87. </div>
  88.  
  89.  
  90.  
  91. <div style="height: 288px; width: 346px; height: 288px; left: 20px; position: absolute; top: -102px; width: 345px; z-index: 1; " class="tinyText">
  92. <div style="position: relative; width: 345px; ">
  93. <img src="Missing_You_files/shapeimage_3.png" alt="" style="height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; " />
  94. </div>
  95. </div>
  96.  
  97.  
  98.  
  99. <div style="height: 288px; width: 346px; height: 288px; left: 334px; position: absolute; top: 135px; width: 345px; z-index: 1; " class="tinyText">
  100. <div style="position: relative; width: 345px; ">
  101. <img src="Missing_You_files/shapeimage_4.png" alt="" style="height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; " />
  102. </div>
  103. </div>
  104.  
  105.  
  106.  
  107. <div style="height: 288px; width: 346px; height: 288px; left: 20px; position: absolute; top: 135px; width: 345px; z-index: 1; " class="tinyText">
  108. <div style="position: relative; width: 345px; ">
  109. <img src="Missing_You_files/shapeimage_5.png" alt="" style="height: 288px; left: 0px; position: absolute; top: 0px; width: 346px; " />
  110. </div>
  111. </div>
  112. <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; ">
  113. <script type="text/javascript"><!--//--><![CDATA[//><!--
  114.   var widget1_htmlMarkupURL = ".//Missing_You_files/widget1_markup.html";
  115. //--><!]]></script>
  116. <div id="widget1-htmlRegion" class="html_region_widget"></div>
  117. </div>
  118. <script type="text/javascript"><!--//--><![CDATA[//><!--
  119. new Paste('widget1', 'Scripts/Widgets/HTMLRegion', 'Scripts/Widgets/SharedResources', '.', {"emptyLook": false});
  120. //--><!]]></script>
  121. <div id="id2" style="height: 417px; left: -3px; position: absolute; top: 511px; width: 696px; z-index: 1; " class="style_SkipStroke_1 shape-with-text">
  122. <div class="text-content graphic_textbox_layout_style_default_External_696_417" style="padding: 0px; ">
  123. <div class="graphic_textbox_layout_style_default">
  124. <p style="padding-top: 0pt; " class="paragraph_style">Beto Roman, <br /></p>
  125. <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>
  126. <p class="paragraph_style"><br /></p>
  127. <p class="paragraph_style">P.S. I miss you.<br /></p>
  128. <p style="padding-bottom: 0pt; " class="paragraph_style"> </p>
  129. </div>
  130. </div>
  131. </div>
  132.  
  133.  
  134.  
  135. <div id="id3" style="height: 100px; left: 300px; position: absolute; top: 450px; width: 100px; z-index: 1; " class="style_SkipStroke_1 shape-with-text">
  136. <div class="text-content graphic_textbox_layout_style_default_External_100_100" style="padding: 0px; ">
  137. <div class="graphic_textbox_layout_style_default"></div>
  138. </div>
  139. </div>
  140. <div style="height: 1201px; line-height: 1201px; " class="spacer"> </div>
  141. </div>
  142. <div style="height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; " id="footer_layer">
  143. <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
  144. </div>
  145. </div>
  146. </div>
  147. </body>
  148. </html>
Last edited by peter_budo; 33 Days Ago at 5:20 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,402
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 224
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey
 
1
  #2
Oct 23rd, 2009
A) Use code tags
B) This is a PHP problem not Javascript
C)
  1. <?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.
  1. <?php echo '<?xml version="1.0" encoding="UTF-8"?>' ?>
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC