![]() |
<? @include vs <?php include
Is there a difference when run in a .php file?
Is one slightly better, worse, or just personal choice? |
huh?
You should use <?php, not <? and @include just supresses errors for include. |
<?php
$myString = "Really not sure..."; echo $myString; ?> |
Quote:
|
<? is a short open php tag (might not work in some systems, must be turned on)
<?php is a lonng open tag (works in all systems) See short_open_tag derictive @ - is a sign which suppresses errors output. So if you want some function to stop showing errors, you can put @ sign. |
Okay, just asking coz some scripts use one and others use the other...
|
Quote:
|
All times are GMT -7. The time now is 12:43 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123