Hi all,
Having a slight problem with my development machine. I've just upgraded to PHP 5.2.1 (can't remember previous version)..
I am trying to do some template-based work, and for this I like to be able to edit my HTML within Dreamweaver/visual software.
My problem is that a statement that previously worked now will not:
<? if(1 = 1) { ?>
1 is 1!
<?} else { ?>
1 is not 1!
<? } ?>
That outputs that 1 is 1, and 1 is not 1 - totally ignoring the conditional brackets. This used to work for me - I've been searching and searching and haven't yet found a configuration option. Am I missing something obvious here?
It's not urgent though, as for now I'll just put my bits of code into files and then call include() within PHP. But I would like to find out why it's suddenly stopped working..
Having a slight problem with my development machine. I've just upgraded to PHP 5.2.1 (can't remember previous version)..
I am trying to do some template-based work, and for this I like to be able to edit my HTML within Dreamweaver/visual software.
My problem is that a statement that previously worked now will not:
<? if(1 = 1) { ?>
1 is 1!
<?} else { ?>
1 is not 1!
<? } ?>
That outputs that 1 is 1, and 1 is not 1 - totally ignoring the conditional brackets. This used to work for me - I've been searching and searching and haven't yet found a configuration option. Am I missing something obvious here?
It's not urgent though, as for now I'll just put my bits of code into files and then call include() within PHP. But I would like to find out why it's suddenly stopped working..