[HELP]<?php ?> to <? ?>
Posted by: kahwai1984 (60.54.44.---)
Date: February 20, 2008 09:04AM

i got a test.php file similiar like this:

<?
echo "testing";
?>

when open in localhost, it did not display the "testing" words. but when i change to
<?php
echo ""testing";
?>
it works. IS THERE ANYWHERE TO CHANGE THE READING FROM <?php ?> to <? ?>

Options: ReplyQuote
Re: [HELP]<?php ?> to <? ?>
Posted by: toivo (---.nsw.bigpond.net.au)
Date: February 20, 2008 09:37AM

The option 'short_open_tag' can be found in the php.ini file, as explained in the PHP manual at [php.net]. Tip: make sure you modify the right php.ini file which controls the PHP settings when PHP scripts are used under Apache.

Please note that <? is reserved for XML, and that all styles beside the official <?php ... ?> are deprecated.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote


Sorry, only registered users may post in this forum.