Page 2 of 2

Posted: Thu Sep 05, 2002 11:57 am
by Dale
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /var/www/html/dale/xen/install.php on line 17

Posted: Thu Sep 05, 2002 2:50 pm
by twigletmac
You need a semi-colon (;) at the end of this block of text:

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"
Not a particularily difficult mistake to spot...

Mac

Posted: Thu Sep 05, 2002 3:18 pm
by Dale
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/html/dale/xen/install.php on line 23

Posted: Fri Sep 06, 2002 1:41 am
by twigletmac
The error message is telling you there is an error on line 23:

Code: Select all

<BODY BGCOLOR="{$layoutї'bgcolor']}" TEXT="{$layoutї'text']}" LINK="{$layoutї'link']}" ALINK="{}$layoutї'alink']}" VLINK="{}$layoutї'vlink']}">
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

Posted: Fri Sep 06, 2002 2:04 am
by twigletmac
Before you ask the next errors are on lines 35 - 39. The error will read:
Parse error: parse error, unexpected '}', expecting ']' in d:\thurrock\development\tci\council\phpbin\test.php on line 35
it is the same error on each line and it occurs around the same variable so I'll only put one line up:

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>
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

Posted: Fri Sep 06, 2002 10:37 am
by Dale
Ok Excellent!

It works... well the parse errors have gone... but it still says this:

Image

Posted: Sat Sep 07, 2002 9:26 am
by Dale
Any help?