GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   <? @include vs <?php include (https://gfy.com/showthread.php?t=769018)

allofzen 09-15-2007 05:59 PM

<? @include vs <?php include
 
Is there a difference when run in a .php file?

Is one slightly better, worse, or just personal choice?

Tempest 09-15-2007 06:10 PM

huh?

You should use <?php, not <?

and @include just supresses errors for include.

yahoo-xxx-girls.com 09-15-2007 06:10 PM

<?php
$myString = "Really not sure...";
echo $myString;
?>

GrouchyAdmin 09-15-2007 06:11 PM

Quote:

Originally Posted by Tempest (Post 13093297)
You should use <?php, not <?

and @include just supresses errors for include.

Quoting for accuracy.

Chariott 09-15-2007 06:14 PM

<? 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.

allofzen 09-15-2007 06:15 PM

Okay, just asking coz some scripts use one and others use the other...

Tempest 09-15-2007 06:20 PM

Quote:

Originally Posted by allofzen (Post 13093312)
Okay, just asking coz some scripts use one and others use the other...

It's a good way to tell if the script was written by a crappy programmer or a good one IMO.


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