Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Php @

  1. #1
    Regular Coder
    Join Date
    Aug 2006
    Posts
    311
    Thanks
    0
    Thanked 1 Time in 1 Post

    Php @

    Can someone tell me what this symbols means in php: @. I have been searching and cannot find the answer. Maybe also if you could point me to a tutorial or documentation that deals with that. here is the code that I am looking at that has it there

    <?php
    if (@include(getenv('DOCUMENT_ROOT').'/adserver/phpadsnew.inc.php')) {
    if (!isset($phpAds_context)) $phpAds_context = array();
    $phpAds_raw = view_raw ('zone:4', 0, '', '', '0', $phpAds_context);
    echo $phpAds_raw['html'];
    }
    ?>
    Last edited by Jacobb123; 08-18-2007 at 08:29 PM. Reason: more info

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    it supresses any errors a function may output. For example, try the below.

    PHP Code:
    <?php
    mysql_connect
    ("falsehost","fake","details");
    @
    mysql_connect("falsehost","fake","details");
    @
    mysql_connect("falsehost","fake","details") or die ("custom error");
    ?>

  • #3
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Quote Originally Posted by Jacobb123 View Post
    Maybe also if you could point me to a tutorial or documentation that deals with that.
    http://www.php.net/operators.errorcontrol


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •