HTML - Parse Error
Hey, I'm new to this but am trying to upload a web photo gallery that I created with Adobe Lightroom. The program creates the index and all necc. files for the webpage. I uploaded these files and am coming up with this error on my domain (www.scottrlacy.com):
Parse error: syntax error, unexpected T_STRING in /home/www/scottrlacy.com/index.html on line 1 I know it must mean that something is wrong with my 1st line of my index. Here are the first 10 lines for your reference. Any help is greatly apprediated <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>www.scottrlacy.com</title> <style type="text/css"> body,html { margin-top:0; Similar TutorialsCode: Parse error: syntax error, unexpected T_DNUMBER in /home/a6989956/public_html/include/database.php on line 24 Can anyone please tell me whats wrong? Here is line a few lines Code: class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var $num_active_guests; //Number of active guests viewing site var $num_members; //Number of signed-up users /* Note: call getNumMembers() to access $num_members! */ /* Class constructor */ function MySQLDB(){ /* Make connection to database */ $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); /** * Only query database to find out number of members * when getNumMembers() is called for the first time, * until then, default value set. */ $this->num_members = -1; if(TRACK_VISITORS){ /* Calculate number of users at site */ $this->calcNumActiveUsers(); /* Calculate number of guests at site */ $this->calcNumActiveGuests(); } } line 24-25 is Code: $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); PLEASE HELP! Hi: I hope someone out there can help me. My son and daughter created a website for me and now I have taken it over. I have been desperately trying to figure out why it doesn't come up in the search engines. Yesterday while working on the website, I decided to try a page rank checker and received the following message: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/rankthi1/public_html/tools/nusoap.php on line 2264 As far as I can tell, there isn't a line 2264 (I counted them). I'm unfamiliar with php. Any guidance, would be greatly appreciated. Thanks in advance, Vicki hey i am trying to parse a website (crownsofpower.com/news.php) on to my website but am not sure about how to do so can someone help me please Hi All, I need to parse an HTML file into an existing HTML page. Initially I had used a PHP include to handle this, but it turns out the client server does not support PHP. An <iframe> is another option, but frames tend to be a *@#$ when it comes to interoperability, so I'd like to try another option - is there one? Hi I am new to this forum and hope you guys can help me. I am loading this html page http://hosted.where2getit.com/safewa...ressline=95135 My goal is to parse the page content and get the address of the Safeway store. I found however even I can see the address in the browser, but I can open the "page source", the store address is not in the html. What does this mean? Can I get the store address anyway? Thanks, fireman I'm having an annoying problem that I'm not understanding why it doesn't work. At this point I'm sure it's something simple I'm overlooking. I have a horizontal accordion menu, which is using a UL, now in my Services section of the menu, I have another UL that only shows the first item, and the button that is suppose to be there disappears. According to W3 validation tools, all of my HTML and CSS is error free, so not sure why it's behaving like this. The website is http://dev.jabrowndesigns.com Thanks for any advice. P.S. The menu doesn't work IE for some reason, haven't quite reached it yet as it's not too high on my list at the moment, but if anyone knows off the bat how to fix it, thanks for that too! Ok hi everyone hows it going! Ive been trying to get rid of one xhtml error and its prooving harder then I antisipated to remove it! CLICK HERE TO SEE THE VALIDATION PAGE CLICK HERE TO SEE THE SITE IN QUESTION Please if this is something easy and im missing it please let me know! Hi Guys, This is a really minor task but i cant seem to get rid of the page error on my homepage. If you go here http://www.pspwallpaper.co.uk/ then say click 'affiliates' and then hit the back button to the homepage it runs a error. Page error. If some1 could take a quick look and help me out. It might be just tiredness on my part i have been workin 3hours on new homepage and have no energy now lol. Any help gratefull. Regards, WhiteKnight Hello all I have created a page that takes and display some data from an xml file, it works fine on internet explorer, but when I tried to run it on the Mozilla FireFox there was no data any help?? I've gotten this error even though I do have all the objects declared: Line384 Error: 'window.document.patentfrm.patentList' is null or not an object patentfrm: refers to the form name patentList: refers to the name of the list this error occurs when ever I try to add a patent a the list any possible reasons? I inherited a web page that has "background" as an attribute for a <td>: <td background="images/nav_back.jpg"... Validation gives - there is no attribute "BACKGROUND" The doctype is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Is there a work-around? That background image is needed. Thanks... Ok i have this one error and ive deleted the entire line but it repeats the same error again because the link below it has the same error aswel.. Not sure what the error is.. Any ideas please? CLICK HERE TO SEE THE XHTML VALIDATION ERROR Ive pasted the error below aswel.. # Error Line 61 column 96: there is no attribute "target". ...l_2_briefs/IND382_brief.html" target="_blank">IND382</a><br /> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. I am trying to help a friend with his website after his admin left. The site was set up years ago and was never finished. He had a simple web form that would send an email using the code below. The previous guy had the output going to himself and then he would fwd to the sites owner. Strange but not sure why. I just went in to edit the email address, but now I get a "The requested URL /_derived/nortbots.htm was not found on this server." after hitting submit. I googled the error and the only thing I can find is that possibly the original page was created in Frontpage and after opening the file in Notepad++ the file lost some FP attribute. Any ideas what I should try? Thanks Here is the code: <html> <head> <title> Newsletter Registration</title> <meta name="description" content="domain.com" /> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <script src="/resource/js/main.js" type="text/javascript"></script> <link href="/resource/css/main.css" type="text/css" rel="stylesheet" media="all" /> </head> <body onload="initJS();"> <div id="wrapper"> <table id="mainTable" cellspacing="0" cellpadding="0"> <tr id="banner"> <td style="font-family:Arial,sans-serif; color:white; text-align:right; vertical-align:middle; padding:5px 30px 0 0;" colspan="3"> <p style="padding:0; margin:0;"> <!--webbot bot="Include" U-Include="resource/include/quicksearch.html" tag="body" startspan--> <form method=get action="/cgi-bin/listman/exec/search.cgi"> <input type="hidden" name="search" value="1"> <input type="hidden" name="perpage" value="10"> <input type="hidden" name="marknew" value="1"> <input type="hidden" name="euro_numbers" value="0"> <input type="hidden" name="sort_order" value="3,abc,forward" /> CITY <select name="lfield3_match" size="1"> <option value="" selected>Any</option> <option>Affton</option> <option>Woodson Terrace</option> </select> ZIP <input type="text" size="10" name="lfield5_match" /> <input type="submit" value="Quick Search" /> </form> <!--webbot bot="Include" i-checksum="56169" endspan --></p> </td> </tr> <tr id="menu"> <td style="vertical-align:top;" colspan="3"> <map id="menu" name="menu"> <area shape="rect"#Home coords="32,4,94,24" href="/index.html" title="Home" /> <area shape="rect"#List Properties coords="151,3,292,26" href="/cgi-bin/listman/exec/search.cgi" title="List Properties" /> <area shape="rect"#Rentals coords="360,4,429,25" href="/rentals.html" title="Rentals" /> <area shape="rect" coords="491,3,604,25" href="./contactus.html" title="Contact Us" /> <area shape="rect"#About Us coords="673,3,773,25" href="/aboutus.html" title="About Us" /> <area shape="rect"#Benjy's Ads coords="832,4,946,26" href="/domain.html" title="Benjy's Ads" /> <area shape="default" nohref="nohref" alt="" /> </map> <img usemap="#menu" style="width:974px; height:30px; padding-bottom:15px; border:0;" src="./resource/image/menu.jpg" title="Home" /> </td> </tr> <tr> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowleft.jpg') repeat-y top left; vertical-align:top; text-align:right"> <div style="height:100%; background:url('/resource/image/bgbottomleftcol.jpg') no-repeat bottom left;"> </div> </td> <td style="width:941px; vertical-align:top;"> <div id="content" style="height:100px; border:1px solid black; overflow:auto; padding:15px; background-color:white;"> <div style="border:1px solid black; background-color:lightgrey;"> <h2 style="padding:5px; margin:0;">Benjys Newsletter Registration</h2> </div> <ul> <li>New Properties "<font color="#0000FF">Last Seven Days</font>", </li> <li>New Properties "<font color="#0000FF">Last 30 Days</font>", and </li> <li>A Complete Listing of all Properties</li> </ul> <p align="center"><font color="#0000FF"><b>To join the Newsletter, just enter the following information below.</b></font></p> <form method="POST" name="registration" action="_derived/nortbots.htm" webbot-action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit=""> <!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="sander.liebert@gmail.com" B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="Info - Benjy's Newsletter Registration Page" S-Builtin-Fields startspan --><input NAME="VTI-GROUP" TYPE="hidden" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="37496" --> <div align="center"> <table border="0" width="86%" id="table1"> <tr> <td width="211" align="center">First Name<br> <input type="text" name="First" size="20" style="border: 1px solid #0000FF; background-color:#CCFFFF"> </td> <td width="258" align="center">Last Name<br> <input type="text" name="Last" size="25" style="border: 1px solid #0000FF; background-color:#CCFFFF"> </td> <td align="center">Email Address<br> <input type="text" name="Email" size="40" style="border: 1px solid #0000FF; background-color:#CCFFFF"></td> </tr> <tr> <td width="211"> </td> <td width="258"> </td> <td> </td> </tr> </table> </div> <p align="center"> <input type="submit" value="Submit" name="B1" style="border: 1px solid #0000FF"> <input type="reset" value="Reset" name="B2" style="border: 1px solid #0000FF"></p> </form> </div> </td> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowright.jpg') repeat-y top right; vertical-align:top"> <div style="height:100%; background:url('/resource/image/bgbottomrightcol.jpg') no-repeat bottom right;"> </div> </td> </tr> </table> </div> </body> </html> Hi I just developed a my site called www.365telecom.com in a "Firefox browser" but when I open it up in Internet Explore I get a Stack Overflow at line: 0 Error What do I have to do to make the site run smooth in both browsers????? Hi all, I have recently begun updating my website to XHTML and I have encountered the following error and I am not sure what I am doing incorrectly. Any advice would be very welcome. http://www.dynamic-xchange.com/DXServices.php http://validator.w3.org/check?uri=ht...doctype=Inline Best Regards, Simon Hi there I have edited a website in front page and it has a basic slideshow of top pictures. When previewing it in frontpage it shows fine and works well. However, when uploading to the site, it shows the three pictures as one large block. Can anyone advise where I am going wrong? the page on the site is www.thepullmanlodge.co.uk/weddings.htm Thanks it says that end tag for table is not finished. here is the sequence <form action="$vboptions[forumhome].php" method="get"> <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center"></table> <div align="center"> apreciate any help you can give me Hello, I am having a problem with this xml document parsing. Code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!-- ScanMaster and DigiCam FAQ --> <?xml-stylesheet type="text/css" href="assets/FAQ.css" ?> <FAQ> <Title>Jackson Electronics Products</Title> <SubTitle>Frequently Asked Questions</SubTitle> <product>The ScanMaster</product> <question>How do I scan slides?</question> <answer> <! [CDATA["You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics."]]> </answer> <question>Where can I find the latest drivers for my ScanMaster?</question> <answer> <! [CDATA["You can download the latest software drivers from the Jackson Electronics Web page."]]> </answer> <question>What is the largest sheet that I can scan?</question> <answer> <! [CDATA["8.5 x 14 in (216 x 356 mm)."]]> </answer> <question>How do I fax with my ScanMaster?</question> <answer> <! [CDATA["You can turn your scanner into a fax machine by purchasing the FaxRight add-on component (part number STA4500) available from Jackson Electronics."]]> </answer> <product>DigiCam</product> <question>What is the difference between optimal and digital zoom?</question> <answer> <! [CDATA["With optical zoom the Digicam's lense phyiscal moves inside the camera; with digital zoom, the camera's 'electronic brain' zooms the image. If you zoom too much, your image will become pixelated."]]> </answer> <question>What sort of batteries should I use with the DigiCam?</question> <answer> <! [CDATA["Nickel Metal Hydride (NiMH) batteries work the best and having the longest lifetime. Nickel-Cadium batteries also work very well as do Alkaline batteries. Do not use Lithium batteries."]]> </answer> <question>What resolution should I use for 4x6 in. photos?</question> <answer> <! [CDATA["We recommend 640x480 for 4x6 images, 1024x768 for 5x7 in. photos, and 1600x1200 for 8x10 in photos."]]> </answer> <question>Can the DigiCam be harmed by airport X-ray machines?</question> <answer> <! [CDATA["No, there is no evidence that X-ray machines can affect the performance or quality of DigiCam photos."4]]> </answer> </FAQ> This is the error I get when trying to parse it in Internet Explorer. Quote: Jackson Electronics Products Frequently Asked Questions The ScanMaster How do I scan slides? The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'file:///G:/Course Technology/XML/datadisks/Tutorial.... <! [CDATA["You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics... This is the error I get in Firefox Quote: Jackson Electronics Products Frequently Asked Questions The ScanMaster How do I scan slides? The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'file:///G:/Course Technology/XML/datadisks/Tutorial.... <! [CDATA["You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics... I will do a little bit more reading to see if I can find the answer. Does anyone have a good XML tutorial site? |