<? @include vs <?php include

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • allofzen
    Confirmed User
    • Jul 2007
    • 182

    #1

    <? @include vs <?php include

    Is there a difference when run in a .php file?

    Is one slightly better, worse, or just personal choice?
    www.adultsexzen.com - TGP
    www.adultsexzen.com - TRADE TRAFFIC

    Moniker - Your domains make you money - keep them safe! Search GFY for yourself!

    JaugarPC HOSTING - reliable VPS HOSTING, 30 day MONEY BACK trial, TRY RISK FREE NOW!
  • Tempest
    Too lazy to set a custom title
    • May 2004
    • 10217

    #2
    huh?

    You should use <?php, not <?

    and @include just supresses errors for include.

    Comment

    • yahoo-xxx-girls.com
      Confirmed User
      • Jul 2006
      • 3143

      #3
      <?php
      $myString = "Really not sure...";
      echo $myString;
      ?>
      sig too big

      Comment

      • GrouchyAdmin
        Now choke yourself!
        • Apr 2006
        • 12085

        #4
        Originally posted by Tempest
        You should use <?php, not <?

        and @include just supresses errors for include.
        Quoting for accuracy.

        Comment

        • Chariott
          Confirmed User
          • Nov 2006
          • 361

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

          UUGallery v3.37 builder plugin for Wordpress!
          Now it builds FLV VIDEO Galleries! It grabs galleries from FHG's, generates thumbnails, resizes originals,
          arranges within your template and posts a gallery within 1 click!
          Start making money right now!
          ICQ# 475-719-552, Email+MSN: msnaddress[-~at~-]uusoftware.com

          Comment

          • allofzen
            Confirmed User
            • Jul 2007
            • 182

            #6
            Okay, just asking coz some scripts use one and others use the other...
            www.adultsexzen.com - TGP
            www.adultsexzen.com - TRADE TRAFFIC

            Moniker - Your domains make you money - keep them safe! Search GFY for yourself!

            JaugarPC HOSTING - reliable VPS HOSTING, 30 day MONEY BACK trial, TRY RISK FREE NOW!

            Comment

            • Tempest
              Too lazy to set a custom title
              • May 2004
              • 10217

              #7
              Originally posted by allofzen
              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.

              Comment

              Working...