473,657 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to fix "Parse error: syntax error, unexpected T_STRING " error?

2 New Member
I am fairly new at this and I am I am receiving this error code:

Parse error: syntax error, unexpected T_STRING in /home/brooks/christinalbrook s-www/index.html on line 1

for this code:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title></title>
  6. <meta http-equiv="Refresh" content="0;url= Welcome.html" />
  7. </head>
  8. <body bgcolor="#FFFFFF">
  9. </body>
  10. </html>
I have been unable to find my error. Please help!
Feb 3 '11 #1
3 4248
drhowarddrfine
7,435 Recognized Expert Expert
In your doctype, there's a stray '3'.
Feb 3 '11 #2
Christina Brook
2 New Member
This is what my code looks like now and I still get this error message:

Parse error: syntax error, unexpected T_STRING in /home/brooks/christinalbrook s-www/index.html on line 1

1 <?xml version="1.0" encoding="UTF-8"?><!DOCTYP E html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>
6 </title>
7 <meta http-equiv="refresh" content="0;url= Welcome.html" />
8 </head>
9 <body>
10 </body>
11 </html>
Feb 8 '11 #3
JKing
1,206 Recognized Expert Top Contributor
Are you running php with short tags on?
Feb 8 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2369
by: inonzuk | last post by:
why strange you ask? here goes: I have been working with Php and Mysql for a week without any problems. Today I tried executing a php page that connects to mysql and creates a new database, I got this error: "Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\test\_debug_tmp.php on line 3". I did some reading on the net and checked all my configuration, and it
2
1736
by: Cleverbum | last post by:
Hi, been scratching my head for a while on this one and was wondering how what was going wrong. I dont mind at this stage if the actual thing I'm trying to do, just why on earth it wont accept that the variable is a string and get on with it!! the code is below, with the problem line highlighted. <? $myCounter=0; $tabStr="";
4
8967
by: lisa | last post by:
I have an XML file that starts like this: <?xml version="1.0" encoding="ISO-8859-1" xmlns:fn="http://www.w3.org/2005/xpath-functions"?> <Authors> <Author> <ID>2</ID> <UserName>Whoever</UserName> <Title>Whatever</Title> <Internet>email</Internet>
3
2129
crystal2005
by: crystal2005 | last post by:
I found such eror message when i tried to test sending email. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /www/110mb.com/h/e/a/v/e/n/t/u/heaventure/htdocs/send_contact.php on line 10 Do we have to set something on the hosting server in order to be able to send message?? This is my code that i encountered the problem
3
4534
by: HOWARD MYERS | last post by:
mdb was originally developed on another machine and I had no trouble in making a MDE. It is now on a XP machine with Access 97 installed as well as Office 2003 installed (but not Access 2003). The mdb runs perfectly well, but I get the "compile error in hidden module - module1" error message when I try to make a MDE. The only ActiveX Control used is the WebBrowser Control. I have been through all the suggested solutions as recommended on...
5
2186
by: Joshr35 | last post by:
I keep getting this same error on my store front page login area. Parse error: syntax error, unexpected '{' Here's the actuall php script: <?php if ( (!strstr($_SERVER,'login.php')) and (!strstr($_SERVER,'create_account.php'))
14
5496
riverdale1567
by: riverdale1567 | last post by:
Hi I am a newbie trying to get some of my first code working, yada yada yada. I have a drop down box which chooses a state then takes the post data to 'processform2.php' to use that to pull up all the rows which have the corresponding state. I am getting this 'Parse error: syntax error, unexpected T_STRING in /home/attorney/public_html/' on line 13 <? $username="XXXXXXXX"; $password="XXXXXX"; $database="XXXXXXXX";
5
2857
by: Mandyrjs | last post by:
hi im new to php and i want to code a admin login page where i want to match the values from the login form with the values of the database table.....when i run the login page after entering the user name and the password i've got a Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\php\validate.php on line 16. Can anybody please help me to slove this matter. validate.php <?php session_start(); $username= $_POST; $password=...
5
11095
by: nilupat | last post by:
Parse error: syntax error, unexpected T_VARIABLE in C:\Inetpub\vhosts\dspseed.in\httpdocs\dspseed\odernow_mail.php on line 13 my code is as folow : <?php extract($_POST); echo $_POST."<br>".$_POST."<br>".$_POST."<br>".$_POST."<br>".$_POST."<br>".$_POST."<br>".$_POST."<br>".$_POST."<br>"; $recipient=$_POST;
0
8394
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.