Can anyone tell me why this wont compile?
**start*******
<?php IF(1) { ?> Hello <? } ELSE { ?> Hello 2 <? } ?>
**end *****
I get this:
Parse error: parse error, unexpected $
fixed it:
it needed: <?php not <?
php is pretty poor in regard to error messages, ive used lots of other scripting languages and none have been this cryptic.
hopefully php 5 will be better.
c
Originally posted by bing_crosby hopefully php 5 will be better.
Judging from what you wrote, you're using a fairly old version already.