Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /var/www/html/dale/xen/install.php on line 17
Installation....
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You need a semi-colon (;) at the end of this block of text:
Not a particularily difficult mistake to spot...
Mac
Code: Select all
echo "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>$title</TITLE>\n"Mac
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
The error message is telling you there is an error on line 23:
Have you looked at it to see if there is anything wrong? As a hint there's two places where the same mistake has been made and it has to do with curly brackets.
Mac
Code: Select all
<BODY BGCOLOR="{$layoutї'bgcolor']}" TEXT="{$layoutї'text']}" LINK="{$layoutї'link']}" ALINK="{}$layoutї'alink']}" VLINK="{}$layoutї'vlink']}">Mac
Last edited by twigletmac on Fri Sep 06, 2002 2:05 am, edited 1 time in total.
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Before you ask the next errors are on lines 35 - 39. The error will read:
The error has to do with where the quotes have been put around an elements name, so when you solve that the same error is going to occur on 79 but this time it will affect a different variable. Then it will occur on line 87, same error same cause.
That's where the parse errors end for me. These errors are not that difficult to spot - you really have to look at the code and see where brackets and quotes have been perhaps misplaced. If you're not already using one a good syntax highlighter might be very helpful for you.
Mac
it is the same error on each line and it occurs around the same variable so I'll only put one line up:Parse error: parse error, unexpected '}', expecting ']' in d:\thurrock\development\tci\council\phpbin\test.php on line 35
Code: Select all
<TD BGCOLOR="{$layoutї'tdbgcolor2]'}" CLASS="tdbg2">MySQL Username:</TD><TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2"><INPUT TYPE="text" NAME="mysqlїsql_user]" VALUE="{$mysqlї'sql_user']}"></TD></TR><TR>That's where the parse errors end for me. These errors are not that difficult to spot - you really have to look at the code and see where brackets and quotes have been perhaps misplaced. If you're not already using one a good syntax highlighter might be very helpful for you.
Mac
