Installation....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Post by Dale »

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /var/www/html/dale/xen/install.php on line 17
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Last edited by twigletmac on Fri Sep 06, 2002 2:05 am, edited 1 time in total.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Post by Dale »

Ok Excellent!

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

Image
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Post by Dale »

Any help?
Post Reply