This is a discussion on HELP within the PHP Language forums, part of the PHP Programming Forums category; Hi, I am new to PHP and have found in many scripts on the net that people use @ as a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Ashutosh wrote:
> Hi, > I am new to PHP and have found in many scripts on the net that people > use @ as a prefix to inbuilt function. > For e.g: > > > $conn = @imap_open("\{$server/pop3}INBOX", $user, $pass); > i cant figure out this.Please help me understand this. Hi The @ suppresses errors. SO in your case: if @imap_open("\{$server/pop3}INBOX", $user, $pass); is not working for some reason, PHP will ignore it and NOT print an errormessage or warning. Regards, Erwin Moller |
|
|||
|
Ashutosh wrote:
> Hi, > I am new to PHP and have found in many scripts on the net that people > use @ as a prefix to inbuilt function. > For e.g: > > > $conn = @imap_open("\{$server/pop3}INBOX", $user, $pass); > i cant figure out this.Please help me understand this. > @ suppresses error and warning messages. -- Ron Chaplin =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= T73 Software & Design www.t73-softdesign.com To provide custom and quality software, designs and services, to our customers, at an affordable rate, with minimal delay. |
|
|||
|
Ronald Chaplin wrote:
> Ashutosh wrote: > >> Hi, >> I am new to PHP and have found in many scripts on the net that people >> use @ as a prefix to inbuilt function. >> For e.g: >> >> >> $conn = @imap_open("\{$server/pop3}INBOX", $user, $pass); >> i cant figure out this.Please help me understand this. >> > > @ suppresses error and warning messages. > I should update my newsreader before replying I guess :p As this was just previously posted on -- Ron Chaplin =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= T73 Software & Design www.t73-softdesign.com To provide custom and quality software, designs and services, to our customers, at an affordable rate, with minimal delay. |
|
|||
|
Ronald Chaplin wrote:
>> > I should update my newsreader before replying I guess :p > As this was just previously posted on > :-) Happens to me too. Sometimes somebody posted a answers an hour before I answer, and I see it afterwards. Maybe something with relaying messages all over the world to newsservers? I don't know. At the bright side: If 2 people give the same suggestion/answer chances are the answer it is probably ok. :-) Regards, Erwin Moller |