----- Original Message ----
From: Bob <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, May 2, 2006 3:00:36 PM
Subject: Re: [php-list] Having a problem with coding from a book

Hi Michael,

----- Original Message -----
From: "Michael Sullivan" <[EMAIL PROTECTED]>

> What's with this @mysql_connect stuff?  I use just mysql_connect.  Is
> there a functional difference?

The @ sign suppresses errors, so that if the DB failed to connect, it wouldn't give out any help to any would-be attackers.

Though I prefer error_reporting(0); to suppress all error messages (except my own) once the code is fully tested.
Bob E.



-------------------------

Right, thanks Bob. I was about to reply to that. the @ suppresses the error message, so in this particular instance, it's probably not a good idea to use it. I should have thought of that before posting.

Thanks,
-Nick







[Non-text portions of this message have been removed]



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list




SPONSORED LINKS
Php mysql Job postings


YAHOO! GROUPS LINKS




Reply via email to