PHP - Getting PHP Variable Name Showing in PHP Pages
Windows System and Applications Information Center
|
|
| Getting PHP Variable Name Showing in PHP Pages | | Why am I getting <?= $someName ?> in my PHP script pages? | | By: FYIcenter.com | | If you installed new PHP application to your Apache server, you may notice that some PHP pages are showing
<?= $someName ?> in the output. This is because some Web server will interpret <?= $someName ?>
as valid PHP expression statement, and some Web server will not.
One way to fix this issue is to convert the above PHP expressions into full print() statements like this:
... <?php print($sgHtmlTitle); ?>...
If you are writing new PHP applications, stop using <?= ... ?> PHP expression syntax.
So your application will be more portable. | | ID: 77 | Rank: 1729 | Votes: 0 | Views: 547 | Submitted: 20061209 |
Copyright © 2009 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|