A
aaron b
Guest
It has been a long time since I've touched php but i'm starting to get back into it. I remember I used to jump in and out of php and html using php tags such as <? and ?> however I do that now and it fails to process the php inside the tag I have to use <?php and ?>. Now I always start a php document off with <?php but after that I stick to using <? and ?>. Here is an example:
<?php
$today = date("F j, Y, g:i A");
?>
<html>
<head>
</head>
<body>
<p>It is now <? echo $today; ?></p>
</body>
</html>
In this example the <? echo $today; ?></p> won't work it has to be changed to <?php echo $today; ?></p>.
Did some research and wasn't able to find anything. Is this now common or is there a setting that can be changed so it will register php code after <? instead of always needing <?php ?
Thanks
<?php
$today = date("F j, Y, g:i A");
?>
<html>
<head>
</head>
<body>
<p>It is now <? echo $today; ?></p>
</body>
</html>
In this example the <? echo $today; ?></p> won't work it has to be changed to <?php echo $today; ?></p>.
Did some research and wasn't able to find anything. Is this now common or is there a setting that can be changed so it will register php code after <? instead of always needing <?php ?
Thanks