Saturday, April 25, 2009

Resolving delimiter issue in PHP


All we know that server side coding can be delimited using any one of below two ways.
1. <? some code ?>
2. <?php some code ?>

It is always good practice to follow the second way, some servers may not allow the first way.

If your already existing code uses first way in many files, you can change the server setting to give support for the first way. It can be done by setting below option in php.ini file.

short_open_tag=on;

Use phpinfo() to find the location of php.ini file in your machine.
More Articles...

No comments:

Search This Blog