marain
12-21-2012, 02:03 AM
The code below works (at least when error_reporting is turned off). But I do not understand WHY it works. I understand the short tag notation (and that its use is discouraged). But when I add "php" to the short tag, or remove the equal sign (use of which I do not understand), or any combination thereof, the page no longer works. I am bewildered and befuddled.
Please help.
<?php
$lastUpdate = date( 'j F Y', filemtime( 'pageContent/test.txt' ) );
// error_reporting( -1 );
// ini_set( 'display_errors','On' );
?>
<br />
<br />
© Copyright 2006-<?= date( 'Y' ) ?>, Allan Marain, New Brunswick, NJ, All rights reserved.
<br />
<br />
Page last updated <?= $lastUpdate ?>.<br />
Please help.
<?php
$lastUpdate = date( 'j F Y', filemtime( 'pageContent/test.txt' ) );
// error_reporting( -1 );
// ini_set( 'display_errors','On' );
?>
<br />
<br />
© Copyright 2006-<?= date( 'Y' ) ?>, Allan Marain, New Brunswick, NJ, All rights reserved.
<br />
<br />
Page last updated <?= $lastUpdate ?>.<br />