I do not understand $end

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

Post Reply
gwwindia
Forum Newbie
Posts: 5
Joined: Tue Oct 14, 2003 6:40 am
Location: india
Contact:

I do not understand $end

Post by gwwindia »

I have transferred my installation from linux based apache web server to windows based apache web server, i m getting below error ...
================
Parse error: parse error, unexpected $end in C:\Typo3\htdocs\quickstart\typo3conf\ext\access_rights\pi1\class.tx_accessrights_pi1.php on line 576
================
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

it might be cos of a if statment, i.e.

Code: Select all

<?php
if($bla == 1)
{
//do stuff
}
else
{
//do more stuff
?>
note that the } is missing in ELSE.

might be worth pasteing your code here.
gwwindia
Forum Newbie
Posts: 5
Joined: Tue Oct 14, 2003 6:40 am
Location: india
Contact:

Post by gwwindia »

the problem is if i delete some lines, it does not give error, whereas if i comment those lines, the error remains as it is.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

You need to show us your code
Post Reply