View Full Version : PHP opening and closing tags for php code
dataxa
July 19th, 2009, 10:29 AM
Currently the options are
<?php ... ?> and
<script language="php"> ... </script> and if you enable it in ini file
<? ... ?>. I would like to know if there is any ways to change or add more of these options. For example
<php> ... </php>
simplistik
July 20th, 2009, 08:20 AM
no
icio
July 20th, 2009, 08:24 AM
You do, however, have the option of not using "?>"
dataxa
July 20th, 2009, 06:31 PM
You do, however, have the option of not using "?>"
I'm sorry i didn't really catch your idea. Please explain.
icio
July 21st, 2009, 05:08 AM
It was slightly off-topic, but what I was noting is that if you are using the PHP tags <? or <?php then you don't necessarily need to include ?>. For example,
<?php echo "Here's some PHP in a block that I'm not going to close!";
RvGaTe
July 22nd, 2009, 01:41 PM
It was slightly off-topic, but what I was noting is that if you are using the PHP tags <? or <?php then you don't necessarily need to include ?>. For example,
<?php echo "Here's some PHP in a block that I'm not going to close!";
Correct, but... it has to be the end of the file
this works to:
<?=$varname ?>
to quickly add display a variable, its highly discouraged tho...
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.